Author: mav
Date: Wed Apr 20 14:16:22 2011
New Revision: 220887
URL: http://svn.freebsd.org/changeset/base/220887

Log:
  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.

Modified:
  head/sbin/camcontrol/camcontrol.c

Modified: head/sbin/camcontrol/camcontrol.c
==============================================================================
--- head/sbin/camcontrol/camcontrol.c   Wed Apr 20 13:27:50 2011        
(r220886)
+++ head/sbin/camcontrol/camcontrol.c   Wed Apr 20 14:16:22 2011        
(r220887)
@@ -2755,6 +2755,7 @@ tagcontrol(struct cam_device *device, in
                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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to