diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-06-01 10:11:06 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-06-01 10:11:06 +0000 |
commit | 4c2cd33afdf0d2e8acca4e02ad1b41b39adbc33a (patch) | |
tree | 1e30e9afad5ddf647a7c59770934de8be56c89cb /sys/scsi | |
parent | 51f3be24144caaa68455d6f6050c35d5a1d6d2c1 (diff) |
if we're going to set ITSDONE when an xfer is done cos the adapter expects
it, we should clear it before we issue it to the adapter too. retried
commands would have ITSDONE still set otherwise.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsi_base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index 514d301de1d..aa5a70bf1ac 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.173 2010/05/24 21:51:49 krw Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.174 2010/06/01 10:11:05 dlg Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -1100,6 +1100,7 @@ scsi_xs_exec(struct scsi_xfer *xs) xs->error = XS_NOERROR; xs->resid = xs->datalen; xs->status = 0; + CLR(xs->flags, ITSDONE); #ifdef SCSIDEBUG if (xs->sc_link->flags & SDEV_DB1) { |