summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2011-04-20 14:16:22 +0000
committermav <mav@FreeBSD.org>2011-04-20 14:16:22 +0000
commit738b0a175176f8de0bd0fce5baa1460e18c1708a (patch)
treec8f10916a9963417b37d0bc53aade65fee826c01 /sbin
parent20478cf0e9f9b9835817a0895234f8e47460d9e7 (diff)
downloadFreeBSD-src-738b0a175176f8de0bd0fce5baa1460e18c1708a.zip
FreeBSD-src-738b0a175176f8de0bd0fce5baa1460e18c1708a.tar.gz
When calling XPT_REL_SIMQ to ajust number of openings, do not try to really
release device. We haven't frozen the device before and attempt to release it will at least cause warning message from kernel.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/camcontrol/camcontrol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index b5f2fb5..6e494c7 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -2755,6 +2755,7 @@ tagcontrol(struct cam_device *device, int argc, char **argv,
bzero(&(&ccb->ccb_h)[1],
sizeof(struct ccb_relsim) - sizeof(struct ccb_hdr));
ccb->ccb_h.func_code = XPT_REL_SIMQ;
+ ccb->ccb_h.flags = CAM_DEV_QFREEZE;
ccb->crs.release_flags = RELSIM_ADJUST_OPENINGS;
ccb->crs.openings = numtags;
OpenPOWER on IntegriCloud