diff options
author | mav <mav@FreeBSD.org> | 2012-10-13 18:11:50 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-10-13 18:11:50 +0000 |
commit | e21d57c65cb602c1de62d9149890014ec958813b (patch) | |
tree | 41b107ea41d48224fcb0810b1d7964888dd5e454 /sys/cam | |
parent | fd39176a327959bc31380299a57763eed2191b7e (diff) | |
download | FreeBSD-src-e21d57c65cb602c1de62d9149890014ec958813b.zip FreeBSD-src-e21d57c65cb602c1de62d9149890014ec958813b.tar.gz |
Use xpt_create_path_unlocked() for initial debug path compilation because
we are not holding respective SIM lock.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_xpt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 01d473d..046899c 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -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" |