svn commit: r196901 - head/sys/cam

Alexander Motin mav at FreeBSD.org
Sun Sep 6 18:59:46 UTC 2009


Author: mav
Date: Sun Sep  6 18:59:46 2009
New Revision: 196901
URL: http://svn.freebsd.org/changeset/base/196901

Log:
  Remove unneeded CAM_SIM_MPSAFE check.

Modified:
  head/sys/cam/cam_xpt.c

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c	Sun Sep  6 18:56:08 2009	(r196900)
+++ head/sys/cam/cam_xpt.c	Sun Sep  6 18:59:46 2009	(r196901)
@@ -4407,10 +4407,7 @@ xpt_alloc_device(struct cam_eb *bus, str
 		device->tag_delay_count = 0;
 		device->tag_saved_openings = 0;
 		device->refcount = 1;
-		if (bus->sim->flags & CAM_SIM_MPSAFE)
-			callout_init_mtx(&device->callout, bus->sim->mtx, 0);
-		else
-			callout_init_mtx(&device->callout, &Giant, 0);
+		callout_init_mtx(&device->callout, bus->sim->mtx, 0);
 
 		/*
 		 * Hold a reference to our parent target so it


More information about the svn-src-head mailing list