Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Sep 2009 18:59:46 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196901 - head/sys/cam
Message-ID:  <200909061859.n86IxkrW091861@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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