Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sun3/dev Fix a bug from last commit: Look for more ...



details:   https://anonhg.NetBSD.org/src/rev/3b150666f6a5
branches:  trunk
changeset: 534399:3b150666f6a5
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Jul 24 19:49:28 2002 +0000

description:
Fix a bug from last commit: Look for more work AFTER the current buf
is removed from the queue.

diffstat:

 sys/arch/sun3/dev/fd.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r e839b68ecdf7 -r 3b150666f6a5 sys/arch/sun3/dev/fd.c
--- a/sys/arch/sun3/dev/fd.c    Wed Jul 24 19:34:57 2002 +0000
+++ b/sys/arch/sun3/dev/fd.c    Wed Jul 24 19:49:28 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.26 2002/07/23 20:49:54 hannken Exp $  */
+/*     $NetBSD: fd.c,v 1.27 2002/07/24 19:49:28 hannken Exp $  */
 
 /*-
  * Copyright (c) 1993, 1994, 1995 Charles M. Hannum.
@@ -688,6 +688,7 @@
         * another drive is waiting to be serviced, since there is a long motor
         * startup delay whenever we switch.
         */
+       (void)BUFQ_GET(&fd->sc_q);
        if (fd->sc_drivechain.tqe_next && ++fd->sc_ops >= 8) {
                fd->sc_ops = 0;
                TAILQ_REMOVE(&fdc->sc_drives, fd, sc_drivechain);
@@ -698,7 +699,6 @@
        }
        bp->b_resid = fd->sc_bcount;
        fd->sc_skip = 0;
-       (void)BUFQ_GET(&fd->sc_q);
 
        biodone(bp);
        /* turn off motor 5s from now */



Home | Main Index | Thread Index | Old Index