mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
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.
This commit is contained in:
parent
62e8d5e1b0
commit
ed2b5a0aef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281008
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user