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