From owner-svn-src-all@FreeBSD.ORG Sat Nov 24 12:56:21 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A0119DC; Sat, 24 Nov 2012 12:56:21 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7F94E8FC15; Sat, 24 Nov 2012 12:56:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAOCuLS0054673; Sat, 24 Nov 2012 12:56:21 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAOCuLt9054672; Sat, 24 Nov 2012 12:56:21 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201211241256.qAOCuLt9054672@svn.freebsd.org> From: Andriy Gapon Date: Sat, 24 Nov 2012 12:56:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r243492 - stable/8/sys/cddl/compat/opensolaris/kern X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 24 Nov 2012 12:56:21 -0000 Author: avg Date: Sat Nov 24 12:56:21 2012 New Revision: 243492 URL: http://svnweb.freebsd.org/changeset/base/243492 Log: MFC r242572: opensolaris compat: clear VI_MOUNT before returning if mount_snapshot fails Modified: stable/8/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/cddl/ (props changed) Modified: stable/8/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c ============================================================================== --- stable/8/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c Sat Nov 24 12:56:07 2012 (r243491) +++ stable/8/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c Sat Nov 24 12:56:21 2012 (r243492) @@ -191,6 +191,9 @@ mount_snapshot(kthread_t *td, vnode_t ** td->td_ucred = cr; if (error != 0) { + VI_LOCK(vp); + vp->v_iflag &= ~VI_MOUNT; + VI_UNLOCK(vp); vrele(vp); vfs_unbusy(mp); vfs_mount_destroy(mp);