summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2010-10-12 00:53:32 +0000
committerkrw <krw@openbsd.org>2010-10-12 00:53:32 +0000
commit1fa0cb04b55ca19a1c14d70a1c91cc92e15cac96 (patch)
tree4fa52e8cf8aa988a0a277935dc6648e50a975b0d /sys/dev/softraid.c
parentcorrect MACHINE, MACHINE_ARCH (diff)
downloadwireguard-openbsd-1fa0cb04b55ca19a1c14d70a1c91cc92e15cac96.tar.xz
wireguard-openbsd-1fa0cb04b55ca19a1c14d70a1c91cc92e15cac96.zip
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/softraid.c')
-rw-r--r--sys/dev/softraid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index df9d63562a9..16c78026a85 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.214 2010/09/23 18:49:39 oga Exp $ */
+/* $OpenBSD: softraid.c,v 1.215 2010/10/12 00:53:32 krw Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -3473,6 +3473,7 @@ sr_raid_inquiry(struct sr_workunit *wu)
inq.version = 2;
inq.response_format = 2;
inq.additional_length = 32;
+ inq.flags |= SID_CmdQue;
strlcpy(inq.vendor, sd->sd_meta->ssdi.ssd_vendor,
sizeof(inq.vendor));
strlcpy(inq.product, sd->sd_meta->ssdi.ssd_product,