Daniel Gryniewicz has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/446124 Change subject: MDCACHE - Use atomics for readdir flags ...................................................................... MDCACHE - Use atomics for readdir flags Although the write lock is always held when we return from mdcache_populate_dir_chunk(), the readdir loop can terminate early, if the client buffer doesn't have enough space. This could result in multiple readdirs processing the same chunk under the read lock, which can deref an entry twice. Switch to using atomics on this flag field. Change-Id: Ibd59283b274422ee6f2477066389e6e43746fe6f Signed-off-by: Daniel Gryniewicz <dang@redhat.com> --- M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h 2 files changed, 10 insertions(+), 4 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/24/446124/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/446124 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: Ibd59283b274422ee6f2477066389e6e43746fe6f Gerrit-Change-Number: 446124 Gerrit-PatchSet: 1 Gerrit-Owner: Daniel Gryniewicz <dang@redhat.com> Gerrit-MessageType: newchange