]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: set client_try_dentry_invalidate to false by default
authorYan, Zheng <zyan@redhat.com>
Tue, 19 Sep 2017 06:38:13 +0000 (14:38 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 19 Sep 2017 06:58:49 +0000 (14:58 +0800)
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" <zyan@redhat.com>
src/common/options.cc

index b5675608306f7bcd2faf429333ce01dc6a52c469..4a642a4841b6b68b684d7ea07b0337c0ef950e7b 100644 (file)
@@ -5968,7 +5968,7 @@ std::vector<Option> get_mds_client_options() {
     .set_description("check for ceph-fuse to consider supplementary groups for permissions"),
 
     Option("client_try_dentry_invalidate", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
-    .set_default(true)
+    .set_default(false)
     .set_description(""),
 
     Option("client_die_on_failed_remount", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)