diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-05-20 00:55:19 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-05-20 00:55:19 +0000 |
commit | c713a7721e58dd0a453fae998afd21f12fd821e8 (patch) | |
tree | 4c794ea604130c88f12d5a7295bcd0cb4624515f /sys/dev/atapiscsi | |
parent | 3c3718e53ebd6b33568092f43f11f6f1d0c4130e (diff) |
New scsi code seems to be stable. Pluck previously identified
low-hanging splbio/splx pairs that are no longer needed and see if
this reveals any hidden scsi flaws.
ok dlg@
Diffstat (limited to 'sys/dev/atapiscsi')
-rw-r--r-- | sys/dev/atapiscsi/atapiscsi.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c index 0e5111d7ba6..11cb54ab0aa 100644 --- a/sys/dev/atapiscsi/atapiscsi.c +++ b/sys/dev/atapiscsi/atapiscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atapiscsi.c,v 1.88 2010/03/23 01:57:19 krw Exp $ */ +/* $OpenBSD: atapiscsi.c,v 1.89 2010/05/20 00:55:17 krw Exp $ */ /* * This code is derived from code with the copyright below. @@ -335,9 +335,7 @@ wdc_atapi_send_cmd(sc_xfer) if (sc_xfer->sc_link->target != 0) { sc_xfer->error = XS_DRIVER_STUFFUP; - s = splbio(); scsi_done(sc_xfer); - splx(s); return; } @@ -345,9 +343,7 @@ wdc_atapi_send_cmd(sc_xfer) ? WDC_NOSLEEP : WDC_CANSLEEP); if (xfer == NULL) { sc_xfer->error = XS_NO_CCB; - s = splbio(); scsi_done(sc_xfer); - splx(s); return; } if (sc_xfer->flags & SCSI_POLL) @@ -1563,7 +1559,6 @@ wdc_atapi_done(chp, xfer, timeout, ret) struct atapi_return_args *ret; { struct scsi_xfer *sc_xfer = xfer->cmd; - int s; WDCDEBUG_PRINT(("wdc_atapi_done %s:%d:%d: flags 0x%x error 0x%x\n", chp->wdc->sc_dev.dv_xname, chp->channel, xfer->drive, @@ -1573,9 +1568,7 @@ wdc_atapi_done(chp, xfer, timeout, ret) if (xfer->c_flags & C_POLL) wdc_enable_intr(chp); - s = splbio(); scsi_done(sc_xfer); - splx(s); xfer->next = NULL; return; |