Use xpt_create_path_unlocked() for initial debug path compilation because

we are not holding respective SIM lock.
This commit is contained in:
Alexander Motin 2012-10-13 18:11:50 +00:00
parent e6ce97d1b5
commit 8cdef07f7c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241509

View File

@ -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"