diff options
author | mav <mav@FreeBSD.org> | 2013-08-07 11:34:20 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-08-07 11:34:20 +0000 |
commit | 1e43e695b76a47d7c35f65af8bae24785e64acdb (patch) | |
tree | 4fc9a797fa4539bdb3514e0e1ef35756d55c0e1e /sys/cam/cam_periph.c | |
parent | cd23449aedfb7a645f8daf6fbd8abd948580609a (diff) | |
download | FreeBSD-src-1e43e695b76a47d7c35f65af8bae24785e64acdb.zip FreeBSD-src-1e43e695b76a47d7c35f65af8bae24785e64acdb.tar.gz |
Remove droping topology mutex after iterating 100 periphs in CAMGETPASSTHRU.
That is not so slow and so often operation to handle unneeded otherwise
xsoftc.xpt_generation and respective locking complications.
Diffstat (limited to 'sys/cam/cam_periph.c')
-rw-r--r-- | sys/cam/cam_periph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index ef0f5a7..d6f7746 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -258,7 +258,7 @@ failure: break; case 3: CAM_DEBUG(periph->path, CAM_DEBUG_INFO, ("Periph destroyed\n")); - xpt_remove_periph(periph, /*topology_lock_held*/ 0); + xpt_remove_periph(periph); /* FALLTHROUGH */ case 2: xpt_lock_buses(); @@ -645,7 +645,7 @@ camperiphfree(struct cam_periph *periph) TAILQ_REMOVE(&(*p_drv)->units, periph, unit_links); (*p_drv)->generation++; - xpt_remove_periph(periph, /*topology_lock_held*/ 1); + xpt_remove_periph(periph); xpt_unlock_buses(); CAM_DEBUG(periph->path, CAM_DEBUG_INFO, ("Periph destroyed\n")); |