svn commit: r322302 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Wed Aug 9 09:13:17 UTC 2017


Author: mav
Date: Wed Aug  9 09:13:15 2017
New Revision: 322302
URL: https://svnweb.freebsd.org/changeset/base/322302

Log:
  Do not loose CCB flags after r320493.
  
  There is at least CAM_UNLOCKED that should be kept.
  
  MFC after:	3 days

Modified:
  head/sys/cam/ctl/scsi_ctl.c

Modified: head/sys/cam/ctl/scsi_ctl.c
==============================================================================
--- head/sys/cam/ctl/scsi_ctl.c	Wed Aug  9 08:57:00 2017	(r322301)
+++ head/sys/cam/ctl/scsi_ctl.c	Wed Aug  9 09:13:15 2017	(r322302)
@@ -1003,7 +1003,8 @@ ctlfe_requeue_ccb(struct cam_periph *periph, union ccb
 	 * target/lun.  Reset the target and LUN fields back to the wildcard
 	 * values before we send them back down to the SIM.
 	 */
-	xpt_setup_ccb(&ccb->ccb_h, periph->path, CAM_PRIORITY_NONE);
+	xpt_setup_ccb_flags(&ccb->ccb_h, periph->path, CAM_PRIORITY_NONE,
+	    ccb->ccb_h.flags);
 
 	xpt_action(ccb);
 }


More information about the svn-src-all mailing list