From: Yan, Zheng Date: Tue, 19 Sep 2017 06:38:13 +0000 (+0800) Subject: client: set client_try_dentry_invalidate to false by default X-Git-Tag: v12.2.1~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17886%2Fhead;p=ceph.git client: set client_try_dentry_invalidate to false by default By default, ceph-fuse uses side effect of 'dentry invalidation' to trim kernel dcache if it runs on kernel < 3.18. The implemention of kernel function d_invalidate() changed in 3.18 kernel, the method no longer works for upstream kernel >= 3.18. RHEL 3.10 kernel includes backport of patches that change implemention of d_invalidate(). So checking kernel version to decide if 'dentry invalidation' method works is unreliable. Fixes: http://tracker.ceph.com/issues/21423 Signed-off-by: "Yan, Zheng" (cherry picked from commit 69adaabface27880dd6c8dbfdeeb06cf3f3d346a) --- diff --git a/src/common/options.cc b/src/common/options.cc index 08ac1d39f513..0be052e1bc55 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5934,7 +5934,7 @@ std::vector