Source-Changes archive

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

Re: CVS commit: src/sys/kern



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




Home | Main Index | Thread Index | Old Index