From owner-cvs-src-old@FreeBSD.ORG Tue Jun 23 10:47:50 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C10E6106567E for ; Tue, 23 Jun 2009 10:47:48 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5FAEE8FC14 for ; Tue, 23 Jun 2009 10:47:48 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5NAlmXp080605 for ; Tue, 23 Jun 2009 10:47:48 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5NAlmTC080603 for cvs-src-old@freebsd.org; Tue, 23 Jun 2009 10:47:48 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200906231047.n5NAlmTC080603@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 23 Jun 2009 10:47:42 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/kern kern_lockf.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 10:47:51 -0000 kib 2009-06-23 10:47:42 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern kern_lockf.c Log: SVN rev 194693 on 2009-06-23 10:47:42Z by kib MFC r192683: In lf_advlockasync(), recheck for doomed vnode after the state->ls_lock is acquired. In the lf_purgelocks(), assert that vnode is doomed and set *statep to NULL before clearing ls_pending list. Otherwise, we allow for the thread executing lf_advlockasync() to put new pending entry after state->ls_lock is dropped in lf_purgelocks(). MFC r193931: Do not leak the state->ls_lock after VI_DOOMED check introduced in the r192683. MFC r194356: Decrement state->ls_threads when vnode appeared to be doomed. Revision Changes Path 1.57.2.8 +20 -2 src/sys/kern/kern_lockf.c