David, I would like to find out if you could add a new API for re-validating a cookie. My use case is still FSCache support for Ceph. Ceph has a notion of capabilities (like CACHE cap) that can be granted, revoked or given up. For example the code there to give up the cache cap when the inode file reference count goes to 0. In that case it calls a invalidate on the data. Obviously. I would like to have to avoid invalidating the data since it's entirely likely when we re-open it next it'll still not have changed. There's also cases I'm not sure if this would be the best solution, but what I imagined would be a new call to revalidate the data cookie (fscache_cookie_revalidate). The revalidate call could queue up task to validate the data (not allow any reads / writes till then) and if it's stale, then to invalidate the data. If an empty cookie it could skip all this work. I would use that functionality to re-validate my in memory cookie after getting a cache cap granted and avoid a whole lot of mess closing and opening the cookies (unless there's a local writer). What do you think? Thanks, - Milosz -- Linux-cachefs mailing list Linux-cachefs@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cachefs