Xueqian Hu has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1240514?usp=email )
Change subject: MDCACHE: skip parent content_lock on create when dirent caching is off
......................................................................
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(a)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
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1240514?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: Ifc8bd6127c9e377b7a04c59194cffe00164a6ea7
Gerrit-Change-Number: 1240514
Gerrit-PatchSet: 1
Gerrit-Owner: Xueqian Hu <xh140312(a)outlook.com>