Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/dev/scsipi Eliminate sleeping in adapter routin...



details:   https://anonhg.NetBSD.org/src/rev/3cb0654df3fe
branches:  thorpej_scsipi
changeset: 477290:3cb0654df3fe
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Oct 20 20:39:05 1999 +0000

description:
Eliminate sleeping in adapter routines.  It is not legal as the queue may
be run from interrupt context.

diffstat:

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

diffs (19 lines):

diff -r 3bce337e60cd -r 3cb0654df3fe sys/dev/scsipi/atapi_wdc.c
--- a/sys/dev/scsipi/atapi_wdc.c        Wed Oct 20 20:38:14 1999 +0000
+++ b/sys/dev/scsipi/atapi_wdc.c        Wed Oct 20 20:39:05 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atapi_wdc.c,v 1.27.2.1 1999/10/19 17:39:26 thorpej Exp $       */
+/*     $NetBSD: atapi_wdc.c,v 1.27.2.2 1999/10/20 20:39:05 thorpej Exp $       */
 
 /*
  * Copyright (c) 1998 Manuel Bouyer.
@@ -224,8 +224,7 @@
                WDCDEBUG_PRINT(("wdc_atapi_scsipi_request %s:%d:%d\n",
                    wdc->sc_dev.dv_xname, channel, drive), DEBUG_XFERS);
 
-               xfer = wdc_get_xfer((flags & XS_CTL_NOSLEEP) ?
-                   WDC_NOSLEEP : WDC_CANSLEEP);
+               xfer = wdc_get_xfer(WDC_NOSLEEP);
                if (xfer == NULL) {
                        sc_xfer->error = XS_RESOURCE_SHORTAGE;
                        scsipi_done(sc_xfer);



Home | Main Index | Thread Index | Old Index