[L] Change in ...nfs-ganesha[next]: MDCACHE: remove all active entries from LRU L1 and L2
Frank Filz has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/556554?usp=email ) Change subject: MDCACHE: remove all active entries from LRU L1 and L2 ...................................................................... MDCACHE: remove all active entries from LRU L1 and L2 It turns out that entries with elevated refcount clog up L1 and L2 so that entries can not be reaped and the cache grows unbounded. So outside the LRU reaping process itself, remove any entry with an elevated refcount from the LRU. This replaces the long term reference concept. Additionally, be explicit when the sentinel reference is being released. This allows for some code cleanup in other areas. Also, LRU_REQ_INITIAL was supposed to be replaced with LRU_PROMOTE in all cases. Change-Id: If63e31ff2d7490f023b142698e12c444c7432ea8 Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com> --- M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_avl.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_export.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_file.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_hash.h M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.h M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_up.c M src/FSAL/default_methods.c M src/Protocols/9P/9p_lcreate.c M src/Protocols/9P/9p_lopen.c M src/Protocols/9P/9p_proto_tools.c M src/Protocols/9P/9p_remove.c M src/Protocols/NFS/nfs4_pseudo.c M src/SAL/nfs4_state.c M src/SAL/nlm_state.c M src/include/fsal_api.h M src/include/gsh_lttng/mdcache.h M src/support/exports.c 21 files changed, 288 insertions(+), 360 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/54/556554/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/556554?usp=email 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: If63e31ff2d7490f023b142698e12c444c7432ea8 Gerrit-Change-Number: 556554 Gerrit-PatchSet: 1 Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com> Gerrit-MessageType: newchange
participants (1)
-
Frank Filz (GerritHub)