summaryrefslogtreecommitdiffstats
path: root/sys/dev/ciss/ciss.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2015-04-02 23:12:18 +0000
committerpeter <peter@FreeBSD.org>2015-04-02 23:12:18 +0000
commitbc3e70bc40648695cb38b773fe362802a816de21 (patch)
tree5b4ec3b881f6c669561183eb5a1dc1af17d19615 /sys/dev/ciss/ciss.c
parente65f7e7e24641c882df93d7583e2309a43569aee (diff)
downloadFreeBSD-src-bc3e70bc40648695cb38b773fe362802a816de21.zip
FreeBSD-src-bc3e70bc40648695cb38b773fe362802a816de21.tar.gz
Remove redundant mtx_lock/unlock in ciss_name_device. This is a guaranteed
insta-panic on device add/remove. This is only called from the notify thread which already holds the lock while calling this function.
Diffstat (limited to 'sys/dev/ciss/ciss.c')
-rw-r--r--sys/dev/ciss/ciss.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 6cdb319..1b62b5f 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -3438,11 +3438,9 @@ ciss_name_device(struct ciss_softc *sc, int bus, int target)
target, 0);
if (status == CAM_REQ_CMP) {
- mtx_lock(&sc->ciss_mtx);
xpt_path_lock(path);
periph = cam_periph_find(path, NULL);
xpt_path_unlock(path);
- mtx_unlock(&sc->ciss_mtx);
xpt_free_path(path);
if (periph != NULL) {
sprintf(sc->ciss_logical[bus][target].cl_name, "%s%d",
OpenPOWER on IntegriCloud