svn commit: r249247 - stable/8/sys/kern

Konstantin Belousov kib at FreeBSD.org
Mon Apr 8 08:33:32 UTC 2013


Author: kib
Date: Mon Apr  8 08:33:31 2013
New Revision: 249247
URL: http://svnweb.freebsd.org/changeset/base/249247

Log:
  MFC r248969:
  Do not call the VOP_LOOKUP() for the doomed directory vnode.

Modified:
  stable/8/sys/kern/vfs_lookup.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/kern/   (props changed)

Modified: stable/8/sys/kern/vfs_lookup.c
==============================================================================
--- stable/8/sys/kern/vfs_lookup.c	Mon Apr  8 08:29:52 2013	(r249246)
+++ stable/8/sys/kern/vfs_lookup.c	Mon Apr  8 08:33:31 2013	(r249247)
@@ -679,6 +679,10 @@ unionlookup:
 	    VOP_ISLOCKED(dp) == LK_SHARED &&
 	    (cnp->cn_flags & ISLASTCN) && (cnp->cn_flags & LOCKPARENT))
 		vn_lock(dp, LK_UPGRADE|LK_RETRY);
+	if ((dp->v_iflag & VI_DOOMED) != 0) {
+		error = ENOENT;
+		goto bad;
+	}
 	/*
 	 * If we're looking up the last component and we need an exclusive
 	 * lock, adjust our lkflags.


More information about the svn-src-all mailing list