Author: marius
Date: Mon Jul 25 16:24:27 2011
New Revision: 224331
URL: http://svn.freebsd.org/changeset/base/224331

Log:
  MFC: r203484
  
  Do not release device, when changing number of openings.

Modified:
  stable/7/sys/dev/mpt/mpt_cam.c
  stable/7/sys/dev/mpt/mpt_raid.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/mpt/mpt_cam.c
==============================================================================
--- stable/7/sys/dev/mpt/mpt_cam.c      Mon Jul 25 16:20:02 2011        
(r224330)
+++ stable/7/sys/dev/mpt/mpt_cam.c      Mon Jul 25 16:24:27 2011        
(r224331)
@@ -2563,6 +2563,7 @@ mpt_cam_event(struct mpt_softc *mpt, req
                        }
                        xpt_setup_ccb(&crs.ccb_h, tmppath, 5);
                        crs.ccb_h.func_code = XPT_REL_SIMQ;
+                       crs.ccb_h.flags = CAM_DEV_QFREEZE;
                        crs.release_flags = RELSIM_ADJUST_OPENINGS;
                        crs.openings = pqf->CurrentDepth - 1;
                        xpt_action((union ccb *)&crs);

Modified: stable/7/sys/dev/mpt/mpt_raid.c
==============================================================================
--- stable/7/sys/dev/mpt/mpt_raid.c     Mon Jul 25 16:20:02 2011        
(r224330)
+++ stable/7/sys/dev/mpt/mpt_raid.c     Mon Jul 25 16:24:27 2011        
(r224331)
@@ -1062,6 +1062,7 @@ mpt_adjust_queue_depth(struct mpt_softc 
 
        xpt_setup_ccb(&crs.ccb_h, path, /*priority*/5);
        crs.ccb_h.func_code = XPT_REL_SIMQ;
+       crs.ccb_h.flags = CAM_DEV_QFREEZE;
        crs.release_flags = RELSIM_ADJUST_OPENINGS;
        crs.openings = mpt->raid_queue_depth;
        xpt_action((union ccb *)&crs);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to