Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



> > 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




Home | Main Index | Thread Index | Old Index