Date: Wed, 17 Jun 2009 12:43:04 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r194356 - head/sys/kern Message-ID: <200906171243.n5HCh4so075777@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Jun 17 12:43:04 2009 New Revision: 194356 URL: http://svn.freebsd.org/changeset/base/194356 Log: Decrement state->ls_threads when vnode appeared to be doomed. Reported and tested by: pho Modified: head/sys/kern/kern_lockf.c Modified: head/sys/kern/kern_lockf.c ============================================================================== --- head/sys/kern/kern_lockf.c Wed Jun 17 12:34:56 2009 (r194355) +++ head/sys/kern/kern_lockf.c Wed Jun 17 12:43:04 2009 (r194356) @@ -646,6 +646,8 @@ lf_advlockasync(struct vop_advlockasync_ */ 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906171243.n5HCh4so075777>