svn commit: r186276 - head/sys/kern

Kostik Belousov kostikbel at gmail.com
Fri Mar 13 14:22:35 PDT 2009


On Fri, Mar 13, 2009 at 02:15:34PM -0400, John Baldwin wrote:
> Konstantin Belousov wrote:
> >Author: kib
> >Date: Thu Dec 18 11:58:12 2008
> >New Revision: 186276
> >URL: http://svn.freebsd.org/changeset/base/186276
> >
> >Log:
> >  Do not return success and doomed vnode from lookup. LK_UPGRADE allows
> >  the vnode to be reclaimed.
> >  
> >  Tested by:	pho
> >  MFC after:	1 month
> 
> Would EBADF be more appropriate?  That is what other places that check 
> VI_DOOMED return for this type of check (e.g. in cache_lookup()).

I do not think so. When we do namei lookup, there is actually no
file descriptor to be invalid. The fact the we lost the race with
forced unmount actually means that there is no more node with
supplied name.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20090313/41a655df/attachment.pgp


More information about the svn-src-all mailing list