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).
This commit is contained in:
parent
a657f17343
commit
d1bc67e029
|
@ -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.
|
* Copyright (c) 2001 Izumi Tsutsui. All rights reserved.
|
||||||
|
@ -721,7 +721,6 @@ osiop_scsidone(acb, status)
|
||||||
|
|
||||||
callout_stop(&xs->xs_callout);
|
callout_stop(&xs->xs_callout);
|
||||||
xs->resid = 0;
|
xs->resid = 0;
|
||||||
if ((xs->xs_control & XS_CTL_POLL) == 0)
|
|
||||||
scsipi_done(xs);
|
scsipi_done(xs);
|
||||||
|
|
||||||
if (dosched && sc->sc_nexus == NULL)
|
if (dosched && sc->sc_nexus == NULL)
|
||||||
|
|
Loading…
Reference in New Issue