From owner-svn-src-all@FreeBSD.ORG Tue Sep 1 12:05:39 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 998C5106566C; Tue, 1 Sep 2009 12:05:39 +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 891B48FC0C; Tue, 1 Sep 2009 12:05:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n81C5dU6060833; Tue, 1 Sep 2009 12:05:39 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n81C5dSV060831; Tue, 1 Sep 2009 12:05:39 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200909011205.n81C5dSV060831@svn.freebsd.org> From: Konstantin Belousov Date: Tue, 1 Sep 2009 12:05:39 +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: r196733 - 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: Tue, 01 Sep 2009 12:05:39 -0000 Author: kib Date: Tue Sep 1 12:05:39 2009 New Revision: 196733 URL: http://svn.freebsd.org/changeset/base/196733 Log: Fix mount reference leak when V_XSLEEP is specified to vn_start_write(). Submitted by: tegge Modified: head/sys/kern/vfs_vnops.c Modified: head/sys/kern/vfs_vnops.c ============================================================================== --- head/sys/kern/vfs_vnops.c Tue Sep 1 12:04:43 2009 (r196732) +++ head/sys/kern/vfs_vnops.c Tue Sep 1 12:05:39 2009 (r196733) @@ -999,7 +999,7 @@ vn_start_write(vp, mpp, flags) goto unlock; mp->mnt_writeopcount++; unlock: - if (error != 0) + if (error != 0 || (flags & V_XSLEEP) != 0) MNT_REL(mp); MNT_IUNLOCK(mp); return (error);