Author: mav
Date: Sat Oct 13 18:11:50 2012
New Revision: 241509
URL: http://svn.freebsd.org/changeset/base/241509

Log:
  Use xpt_create_path_unlocked() for initial debug path compilation because
  we are not holding respective SIM lock.

Modified:
  head/sys/cam/cam_xpt.c

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c      Sat Oct 13 17:55:06 2012        (r241508)
+++ head/sys/cam/cam_xpt.c      Sat Oct 13 18:11:50 2012        (r241509)
@@ -4797,12 +4797,7 @@ xpt_config(void *arg)
 
        /* 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"
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to