Subject: Re: CVS commit: src/sys/kern
To: None <enami@sm.sony.co.jp>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 08/11/2003 13:41:56
> > cache_lookup/vget will notice the vnode being recycled via VXLOCK.
> > isn't it enough?
> 
> I guess vget() may also sleep while waiting lock and cache_purge() may
> be called even if vnode is not recycled.
> 
> enami.

what's the problem in that case?
e.g. when one thread renames a file and another is looking it up
(almost) simultaneously, i think that there's no problem even if
the latter thread find the renamed old entry.  it can occur anyway when
the latter gets ahead of the former.

YAMAMOTO Takashi