summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-08-13 21:35:57 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-08-13 21:35:57 +0000
commit3349364cd896016f7f62cfdd85cf66f698dfac79 (patch)
treeb9808a93edf14d202ee19c3a1cb41efd0286a2da /sys
parent9e2f6b402f2598368f2f7912d12d356fb516a9aa (diff)
make scsi_done set ITSDONE on the xs. this means hba drivers dont have to
do it (but doesnt preclude them using it internally). discussed with krw@ miod@ and deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/scsi_base.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index ec43d205eec..5f54f531551 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.133 2009/08/13 19:49:31 dlg Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.134 2009/08/13 21:35:56 dlg Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -774,9 +774,11 @@ scsi_done(struct scsi_xfer *xs)
struct buf *bp;
int error;
+ SC_DEBUG(sc_link, SDEV_DB2, ("scsi_done\n"));
+
splassert(IPL_BIO);
- SC_DEBUG(sc_link, SDEV_DB2, ("scsi_done\n"));
+ xs->flags |= ITSDONE;
/*
* If it's a user level request, bypass all usual completion processing,