Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2012 12:56:21 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
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
Message-ID:  <201211241256.qAOCuLt9054672@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211241256.qAOCuLt9054672>