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. _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"