summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-07-15 04:09:58 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-07-15 04:09:58 +0000
commitb3d241c02db3e2e144b38230c2f894df72426378 (patch)
tree0959ed6161f14ae3f9a55e644b0f5a9e14d60c4a
parent4d3e5c134db020777977b2f23a97279f971acde2 (diff)
set the tags on the scsi command according to what the midlayer says they
should be.
-rw-r--r--sys/dev/ic/mpi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index aff8981889d..301ae5044b7 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.62 2006/07/15 03:59:50 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.63 2006/07/15 04:09:57 dlg Exp $ */
/*
* Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org>
@@ -1151,6 +1151,11 @@ mpi_scsi_cmd(struct scsi_xfer *xs)
break;
}
+ if (link->quirks & SDEV_NOTAGS)
+ io->tagging = MPI_SCSIIO_ATTR_UNTAGGED;
+ else
+ io->tagging = MPI_SCSIIO_ATTR_SIMPLE_Q;
+
bcopy(xs->cmd, io->cdb, xs->cmdlen);
io->data_length = htole32(xs->datalen);