From owner-svn-src-all@FreeBSD.ORG Wed Jun 17 12:43:04 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 680791065689; Wed, 17 Jun 2009 12:43:04 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 566488FC19; Wed, 17 Jun 2009 12:43:04 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5HCh4MF075779; Wed, 17 Jun 2009 12:43:04 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5HCh4so075777; Wed, 17 Jun 2009 12:43:04 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200906171243.n5HCh4so075777@svn.freebsd.org> From: Konstantin Belousov Date: Wed, 17 Jun 2009 12:43:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194356 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 12:43:05 -0000 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);