Jeff Layton has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/490847 )
Change subject: FSAL_UP: add new "shrink" upcall
......................................................................
FSAL_UP: add new "shrink" upcall
Ceph MDS's can request that the client shrink their caps cache in
response to memory pressure, and libcephfs now has a way to set
callbacks that get called when it wants to drop caps for an inode.
Add a new shrink upcall that FSAL_CEPH can call for this.
The upcall will find the entry and test its refcount. If the refcount is
2, then we know that there are no other references than the one we
currently hold and the sentinel reference. That should mean that it's
safe to drop it from the hash and try to kill it off.
Change-Id: Ib195569c88563235014fe1b7e6c37ea1333ceeea
Signed-off-by: Jeff Layton <jlayton(a)redhat.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_up.c
M src/FSAL_UP/fsal_up_top.c
M src/include/fsal_up.h
3 files changed, 78 insertions(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/47/490847/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/490847
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ib195569c88563235014fe1b7e6c37ea1333ceeea
Gerrit-Change-Number: 490847
Gerrit-PatchSet: 1
Gerrit-Owner: Jeff Layton <jlayton(a)redhat.com>
Gerrit-MessageType: newchange