Arnab Tah has uploaded this change for review.
COMMIT: fsal_reopen_obj() called with FSAL_O_ANY to try avoid opening globalfd
Fixes: https://github.com/nfs-ganesha/nfs-ganesha/issues/902
FSAL commit2 functions call fsal_reopen_obj() with openflags argument as
FSAL_O_WRITE. Which causes it to generate a global FD (unless there is
already a compatible one open).Since, fsync system call doesn't require
a fd to be open for write; it is adequate to call fsal_reopen_obj() with
openflags as FSAL_O_ANY.
Change-Id: I0a469b6001f911127a0ac34e568a6205fbcd3b2a
Signed-off-by: Arnab Tah <atah@ddn.com>
---
M src/FSAL/FSAL_CEPH/handle.c
M src/FSAL/FSAL_GLUSTER/handle.c
M src/FSAL/FSAL_GPFS/file.c
M src/FSAL/FSAL_LIZARDFS/handle.c
M src/FSAL/FSAL_VFS/file.c
5 files changed, 23 insertions(+), 5 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/51/550651/1
To view, visit change 550651. To unsubscribe, or for help writing mail filters, visit settings.