Xueqian Hu has uploaded this change for review.
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 change 1255384. To unsubscribe, or for help writing mail filters, visit settings.