Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2012 12:56:08 +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-9@freebsd.org
Subject:   svn commit: r243491 - stable/9/sys/cddl/compat/opensolaris/kern
Message-ID:  <201211241256.qAOCu8lN054592@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sat Nov 24 12:56:07 2012
New Revision: 243491
URL: http://svnweb.freebsd.org/changeset/base/243491

Log:
  MFC r242572: opensolaris compat: clear VI_MOUNT before returning if
  mount_snapshot fails

Modified:
  stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
==============================================================================
--- stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c	Sat Nov 24 12:53:38 2012	(r243490)
+++ stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c	Sat Nov 24 12:56:07 2012	(r243491)
@@ -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.qAOCu8lN054592>