Xueqian Hu has uploaded this change for review.
MDCACHE: skip parent content_lock on create when dirent caching is off
On the create paths (open2, mkdir, mknod, symlink) the parent's
content_lock only guards the dirent add, which is already gated on
get_readdir_mode() == FSAL_RDDIR_CHUNK_ALWAYS. Take the lock only in
that mode - mirroring mdcache_link() - so concurrent creates into the
same directory no longer serialize when dirent caching is off.
Change-Id: Ifc8bd6127c9e377b7a04c59194cffe00164a6ea7
Signed-off-by: xueqian.hu <xh140312@outlook.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_file.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c
2 files changed, 28 insertions(+), 8 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/14/1240514/1
To view, visit change 1240514. To unsubscribe, or for help writing mail filters, visit settings.