Decrement state->ls_threads when vnode appeared to be doomed.

Reported and tested by:	pho
This commit is contained in:
Konstantin Belousov 2009-06-17 12:43:04 +00:00
parent d50c1d79d0
commit f02c9d2858

View File

@ -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);