Fix lock recursion on LUN shutdown, introduced on r269497.
MFC after: 3 days
This commit is contained in:
parent
f874ca3efd
commit
2ac1d5afc8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270176
@ -228,7 +228,7 @@ ctl_tpc_lun_shutdown(struct ctl_lun *lun)
|
||||
}
|
||||
|
||||
/* Free ROD tokens for this LUN. */
|
||||
mtx_lock(&control_softc->ctl_lock);
|
||||
mtx_assert(&control_softc->ctl_lock, MA_OWNED);
|
||||
TAILQ_FOREACH_SAFE(token, &control_softc->tpc_tokens, links, ttoken) {
|
||||
if (token->lun != lun->lun || token->active)
|
||||
continue;
|
||||
@ -236,7 +236,6 @@ ctl_tpc_lun_shutdown(struct ctl_lun *lun)
|
||||
free(token->params, M_CTL);
|
||||
free(token, M_CTL);
|
||||
}
|
||||
mtx_unlock(&control_softc->ctl_lock);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user