Decrement state->ls_threads when vnode appeared to be doomed.
Reported and tested by: pho
This commit is contained in:
parent
d50c1d79d0
commit
f02c9d2858
@ -646,6 +646,8 @@ lf_advlockasync(struct vop_advlockasync_args *ap, struct lockf **statep,
|
||||
*/
|
||||
VI_LOCK(vp);
|
||||
if (vp->v_iflag & VI_DOOMED) {
|
||||
state->ls_threads--;
|
||||
wakeup(state);
|
||||
VI_UNLOCK(vp);
|
||||
sx_xunlock(&state->ls_lock);
|
||||
lf_free_lock(lock);
|
||||
|
Loading…
Reference in New Issue
Block a user