svn commit: r245989 - stable/7/sys/dev/mpt

Marius Strobl marius at FreeBSD.org
Sun Jan 27 17:24:51 UTC 2013


Author: marius
Date: Sun Jan 27 17:24:50 2013
New Revision: 245989
URL: http://svnweb.freebsd.org/changeset/base/245989

Log:
  MFC: r241875
  
  Remove support for using Giant for locking within mpt(4). Finer grained
  locking has been working fine for ~5.5 years by now.

Modified:
  stable/7/sys/dev/mpt/mpt_raid.c

Modified: stable/7/sys/dev/mpt/mpt_raid.c
==============================================================================
--- stable/7/sys/dev/mpt/mpt_raid.c	Sun Jan 27 17:16:07 2013	(r245988)
+++ stable/7/sys/dev/mpt/mpt_raid.c	Sun Jan 27 17:24:50 2013	(r245989)
@@ -726,9 +726,7 @@ mpt_raid_thread(void *arg)
 				ccb->ccb_h.func_code = XPT_SCAN_BUS;
 				ccb->ccb_h.cbfcnp = mpt_cam_rescan_callback;
 				ccb->crcn.flags = CAM_FLAG_NONE;
-				MPTLOCK_2_CAMLOCK(mpt);
 				xpt_action(ccb);
-				CAMLOCK_2_MPTLOCK(mpt);
 			}
 		}
 	}


More information about the svn-src-stable-7 mailing list