Attention is currently required from: Madhu Thorat.

Frank Filz would like Madhu Thorat to review this change.

View Change

Add config param Cache_FDs and use it in the same way as in ibm2.5 code

Similar to ibm2.5, have a config parameter Cache_FDs such that:

If Cache_FDs is false then FDs will remained cached till the LRU
reaper thread invokes and tries to close the FDs.

If Cache_FDs is true (default) then FDs get cached and LRU reaper
thread on invocation will try to close the FDs only when the
currentopen >= fds_lowat (FD low watermark).

Change-Id: Ica3a5e7ea1a0b81665b8d9ad701dccb7090209a8
Signed-off-by: Madhu Thorat <madhu.punjabi@in.ibm.com>
(cherry picked from commit 9bf5651b7fc74431d6b6604e804f879e5dc39be9)
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_ext.h
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_read_conf.c
M src/FSAL/commonlib.c
M src/config_samples/config.txt
M src/doc/man/ganesha-cache-config.rst
M src/include/fsal.h
7 files changed, 39 insertions(+), 3 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/55/556955/1

To view, visit change 556955. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ica3a5e7ea1a0b81665b8d9ad701dccb7090209a8
Gerrit-Change-Number: 556955
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com>
Gerrit-Reviewer: Madhu Thorat <madhu.punjabi@in.ibm.com>
Gerrit-Attention: Madhu Thorat <madhu.punjabi@in.ibm.com>
Gerrit-MessageType: newchange