]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
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)
commit69adaabface27880dd6c8dbfdeeb06cf3f3d346a
treeafe04f371b60a9c768781d7ec3cd7b01c308bef5
parent4639b96cae58a7802708e0c326c5f8c7395bea1e
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" <zyan@redhat.com>
src/common/options.cc