Change in ffilz/nfs-ganesha[next]: MDCACHE - Keep dir handles open across readdir
From Daniel Gryniewicz <dang@redhat.com>: Daniel Gryniewicz has uploaded this change for review. ( https://review.gerrithub.io/428230 Change subject: MDCACHE - Keep dir handles open across readdir ...................................................................... MDCACHE - Keep dir handles open across readdir Technically, there's no correlation between offsets returned by telldir(3) during one opendir(3) and another opendir(3). However, this happens to work on most filesystems, but not all. To fix this, open dir handles when the first dirent is read from the FSAL, and leave them open until either 1) the readdir completes on that director; or 2) the LRU demotes the handle and closes it. Change-Id: I5850dd81523ab741c0dc659d7511c8c358d34740 Signed-off-by: Daniel Gryniewicz <dang@redhat.com> --- M src/FSAL/FSAL_CEPH/handle.c M src/FSAL/FSAL_CEPH/internal.h M src/FSAL/FSAL_GLUSTER/handle.c M src/FSAL/FSAL_GPFS/file.c M src/FSAL/FSAL_GPFS/gpfs_methods.h M src/FSAL/FSAL_GPFS/handle.c M src/FSAL/FSAL_MEM/mem_handle.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_avl.c M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c M src/include/fsal.h 10 files changed, 222 insertions(+), 75 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/30/428230/1 -- To view, visit https://review.gerrithub.io/428230 To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-MessageType: newchange Gerrit-Change-Id: I5850dd81523ab741c0dc659d7511c8c358d34740 Gerrit-Change-Number: 428230 Gerrit-PatchSet: 1 Gerrit-Owner: Daniel Gryniewicz <dang@redhat.com>
participants (1)
-
GerritHub