]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: abort the client if we couldn't invalidate dentry caches 48110/head
authorXiubo Li <xiubli@redhat.com>
Mon, 15 Aug 2022 07:15:43 +0000 (15:15 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 15 Sep 2022 03:00:11 +0000 (11:00 +0800)
commitd04ee436e5b546284c83d2ba7e28b7e34b2b861e
tree720d314fd475f12c77712083a1803dd86f1f4e56
parent21b9ceee8672f718c3294b21f213233b2d372aa2
client: abort the client if we couldn't invalidate dentry caches

The option 'client_die_on_failed_dentry_invalidate' requires to kill
the client when fails to invalidate the dentry caches from kernel.
The CephFS client requires a mechanism to invalidate dentries in the
caller (e.g. the kernel for ceph-fuse) when capabilities must be recalled.
If the client cannot do this then the MDS cache cannot shrink which
can cause the MDS to fail.

Introduced by commit 8c778e79840f1aa9b9731e2ef20881da0d122fda.

Fixes: https://tracker.ceph.com/issues/57126
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit c8140cdeab5a5cc88da94e697b97b107155a601c)
src/client/Client.cc