[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Add nc_timeout to struct namecache?
On Thu, Mar 22, 2012 at 08:37:39AM +0000, Emmanuel Dreyfus wrote:
> In order to handle FUSE lookups TTL, I need to somehow keep track of
> a node cache expiry date. I can do that in struct puffs_node, but that
> mean I will lookup the cache, check expiry and decide to not use
> cached entry if it is expired. In that case the entry remains in name cache,
> and is even been refreshed because I looked it up. That does not seems
> to be the right way.
> The laternative is to add nc_tiemout in struct namecache, and add a
> timeout argument to cache_enter. If zero, then previous name cache
> behavior is used. If non-zero, it specify when cache_prune must get
> rid of the entry, by using nc_timeout instead of nc_hittime.
What does NFS do?
I have to look into this code and probably beat on it severely to make
progress on the namei cleanup, but I haven't done so yet so I don't
really know how it works yet.
David A. Holland
Main Index |
Thread Index |