[Midnightbsd-cvs] src [8249] trunk/sys/cam/cam_xpt.c: use xpt_create_path_unlocked
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Sep 17 17:34:30 EDT 2016
Revision: 8249
http://svnweb.midnightbsd.org/src/?rev=8249
Author: laffer1
Date: 2016-09-17 17:34:30 -0400 (Sat, 17 Sep 2016)
Log Message:
-----------
use xpt_create_path_unlocked
Modified Paths:
--------------
trunk/sys/cam/cam_xpt.c
Modified: trunk/sys/cam/cam_xpt.c
===================================================================
--- trunk/sys/cam/cam_xpt.c 2016-09-17 21:34:11 UTC (rev 8248)
+++ trunk/sys/cam/cam_xpt.c 2016-09-17 21:34:30 UTC (rev 8249)
@@ -4777,12 +4777,7 @@
/* Setup debugging path */
if (cam_dflags != CAM_DEBUG_NONE) {
- /*
- * Locking is specifically omitted here. No SIMs have
- * registered yet, so xpt_create_path will only be searching
- * empty lists of targets and devices.
- */
- if (xpt_create_path(&cam_dpath, xpt_periph,
+ if (xpt_create_path_unlocked(&cam_dpath, xpt_periph,
CAM_DEBUG_BUS, CAM_DEBUG_TARGET,
CAM_DEBUG_LUN) != CAM_REQ_CMP) {
printf("xpt_config: xpt_create_path() failed for debug"
More information about the Midnightbsd-cvs
mailing list