Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic In osiop_scsidone(), call scsipi_done() even for ...



details:   https://anonhg.NetBSD.org/src/rev/795db8d0c451
branches:  trunk
changeset: 510017:795db8d0c451
user:      scw <scw%NetBSD.org@localhost>
date:      Thu May 17 10:35:30 2001 +0000

description:
In osiop_scsidone(), call scsipi_done() even for polled operations.

This fixes a `hang' on shutdown when the `Synchronise Cache' command
is sent to a disk. (It uses polled mode because it is called from inside
a shutdown hook).

diffstat:

 sys/dev/ic/osiop.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 43d572ebacc8 -r 795db8d0c451 sys/dev/ic/osiop.c
--- a/sys/dev/ic/osiop.c        Thu May 17 09:13:58 2001 +0000
+++ b/sys/dev/ic/osiop.c        Thu May 17 10:35:30 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: osiop.c,v 1.2 2001/05/09 16:24:43 tsutsui Exp $        */
+/*     $NetBSD: osiop.c,v 1.3 2001/05/17 10:35:30 scw Exp $    */
 
 /*
  * Copyright (c) 2001 Izumi Tsutsui.  All rights reserved.
@@ -721,8 +721,7 @@
 
        callout_stop(&xs->xs_callout);
        xs->resid = 0;
-       if ((xs->xs_control & XS_CTL_POLL) == 0)
-               scsipi_done(xs);
+       scsipi_done(xs);
 
        if (dosched && sc->sc_nexus == NULL)
                osiop_sched(sc);



Home | Main Index | Thread Index | Old Index