From d17d64c4bf0cc0e3732311669f8a4fc027cba1b7 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Wed, 20 Apr 2011 14:16:22 +0000 Subject: [PATCH] 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. --- sbin/camcontrol/camcontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index b5f2fb5dc90..6e494c7618a 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;