[S] Change in ...nfs-ganesha[next]: MDCACHE: force attr refresh after setattr when delegated
Xueqian Hu has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1255384?usp=email ) Change subject: MDCACHE: force attr refresh after setattr when delegated ...................................................................... MDCACHE: force attr refresh after setattr when delegated mdcache_refresh_attrs() skips the backend getattr while a file is delegated, assuming attributes cannot change without a recall. Same-client write-class ops no longer recall, so setattr can complete while a delegation is still held. The following GETATTR then returns stale attributes from mdcache. Add a force flag to mdcache_refresh_attrs() and use it from mdcache_setattr2() so setattr always refreshes the attr cache. Change-Id: Ib792a563049e580e92c7c7e5cfac6fecd2f73154 Signed-off-by: xueqian.hu <xh140312@outlook.com> --- M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h 2 files changed, 10 insertions(+), 6 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/84/1255384/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1255384?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: Ib792a563049e580e92c7c7e5cfac6fecd2f73154 Gerrit-Change-Number: 1255384 Gerrit-PatchSet: 1 Gerrit-Owner: Xueqian Hu <xh140312@outlook.com>
participants (1)
-
Xueqian Hu (GerritHub)