diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-10-12 00:53:33 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-10-12 00:53:33 +0000 |
commit | a00c37d04e43794430c084035699e18c19d2826a (patch) | |
tree | 8d718c1a941578299947619c3be3908455fdae96 /sys/dev/pci | |
parent | e04f4ebd8cfdde3e5c356d99ac819b3964ac1fcc (diff) |
Force openings to 1 for devices that can't do tagged i/o, i.e. more
than 1 i/o active at once. This reduces the chances that concurrent
i/o's for such devices will confuse the device or the adapter code.
It also eliminates a reason for adapter code to maintain its own
queues.
Tweak all drivers that fake INQUIRY results to set the SID_CmdQue
flag, thus continuing to claim to be able to do tagged i/o.
Positive feedback from matthew@ and marco@ for an earlier version.
ok dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/ips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index 3ea223970af..346e66ef29a 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.103 2010/09/20 06:17:49 krw Exp $ */ +/* $OpenBSD: ips.c,v 1.104 2010/10/12 00:53:32 krw Exp $ */ /* * Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org> @@ -934,6 +934,7 @@ ips_scsi_cmd(struct scsi_xfer *xs) inq.version = 2; inq.response_format = 2; inq.additional_length = 32; + inq.flags |= SID_CmdQue; strlcpy(inq.vendor, "IBM", sizeof(inq.vendor)); snprintf(inq.product, sizeof(inq.product), "LD%d RAID%d", target, drive->raid); |