]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: permit lookup_handle to lookup root_fh
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 6 Jun 2019 20:54:43 +0000 (16:54 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 25 Jul 2019 10:19:29 +0000 (12:19 +0200)
commite30b2577d94fec4e74feeecd940569880bc883a5
tree55fa4e0c7e53d77f75231a1403cd46b7eecadb8b
parent85fa207048f84d9c6125070861de8ae3d02b3c7b
rgw_file: permit lookup_handle to lookup root_fh

Originally, root_fh was reachable from RGWLibFS::fh_cache, but
this was problematic as it has infinite lifetime and so is not
present in RGWLibFS::fs_lru.

To fix the above, RGWLibFS::root_fh came to live unhooked from the
handle caches which works because nfs-ganesha/the application
always has an instance handle.  However, this silently breaks
READDIR event invalidation.

Fixes: https://tracker.ceph.com/issues/40196
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 547cb9f87b72440cb8a1d496ac5cfb37b2d83cc7)
src/rgw/rgw_file.cc
src/rgw/rgw_file.h