Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2010 12:00:23 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r203861 - stable/8/sys/dev/mpt
Message-ID:  <201002141200.o1EC0NfK063493@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Feb 14 12:00:23 2010
New Revision: 203861
URL: http://svn.freebsd.org/changeset/base/203861

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

Modified:
  stable/8/sys/dev/mpt/mpt_cam.c
  stable/8/sys/dev/mpt/mpt_raid.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/dev/mpt/mpt_cam.c
==============================================================================
--- stable/8/sys/dev/mpt/mpt_cam.c	Sun Feb 14 11:53:51 2010	(r203860)
+++ stable/8/sys/dev/mpt/mpt_cam.c	Sun Feb 14 12:00:23 2010	(r203861)
@@ -2553,6 +2553,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/8/sys/dev/mpt/mpt_raid.c
==============================================================================
--- stable/8/sys/dev/mpt/mpt_raid.c	Sun Feb 14 11:53:51 2010	(r203860)
+++ stable/8/sys/dev/mpt/mpt_raid.c	Sun Feb 14 12:00:23 2010	(r203861)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002141200.o1EC0NfK063493>