summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2009-08-13 21:35:56 +0000
committerdlg <dlg@openbsd.org>2009-08-13 21:35:56 +0000
commit65470efcfbefaff64b5d0b6bd755799d09f8584d (patch)
tree9cd80c056b3e419aa7930adf67aa6eef07214435
parentMore changes to make the parsing of those evil messages a bit easier. (diff)
downloadwireguard-openbsd-65470efcfbefaff64b5d0b6bd755799d09f8584d.tar.xz
wireguard-openbsd-65470efcfbefaff64b5d0b6bd755799d09f8584d.zip
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@
-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,