]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: permit lookup_handle to lookup root_fh 28440/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 6 Jun 2019 20:54:43 +0000 (16:54 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 6 Jun 2019 21:03:00 +0000 (17:03 -0400)
commit547cb9f87b72440cb8a1d496ac5cfb37b2d83cc7
tree032ce424b71b99467e11f7a00e7458a516eb9482
parent78122147dcf24cb79d262bd775c6966afc414285
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>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h