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 10:40:03
hi,

> > Module Name:	src
> > Committed By:	yamt
> > Date:		Fri Aug  8 20:18:19 UTC 2003
> > 
> > Modified Files:
> > 	src/sys/kern: vfs_cache.c
> > 
> > Log Message:
> > arrange namecache lru before vget (and releasing namecache_slock)
> > since our namecache entry can go away during we're sleeping on the vnode.
> 
> Why can you rely on the removed namecache entry?
> 
> enami.

we never find removed namecache entry
because namecache lookup and removal are atomic due to namecache_slock.
cache_lookup/vget will notice the vnode being recycled via VXLOCK.
isn't it enough?

YAMAMOTO Takashi