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/ic/gdt_common.c | |
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/ic/gdt_common.c')
-rw-r--r-- | sys/dev/ic/gdt_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/gdt_common.c b/sys/dev/ic/gdt_common.c index 4c018c97708..47eeccad850 100644 --- a/sys/dev/ic/gdt_common.c +++ b/sys/dev/ic/gdt_common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gdt_common.c,v 1.54 2010/09/20 06:17:49 krw Exp $ */ +/* $OpenBSD: gdt_common.c,v 1.55 2010/10/12 00:53:32 krw Exp $ */ /* * Copyright (c) 1999, 2000, 2003 Niklas Hallqvist. All rights reserved. @@ -963,6 +963,7 @@ gdt_internal_cache_cmd(struct scsi_xfer *xs) inq.version = 2; inq.response_format = 2; inq.additional_length = 32; + inq.flags |= SID_CmdQue; strlcpy(inq.vendor, "ICP ", sizeof inq.vendor); snprintf(inq.product, sizeof inq.product, "Host drive #%02d", target); |