]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: set client_try_dentry_invalidate to false by default 17886/head
authorYan, Zheng <zyan@redhat.com>
Tue, 19 Sep 2017 06:38:13 +0000 (14:38 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 21 Sep 2017 13:40:21 +0000 (15:40 +0200)
commitf4b4467f8edc30f33c56e2bc22fb509061d814b6
tree5509098e79792161ecb7b37cd819f3f159f3f40b
parent0132a275aa86ca80bf1dcacd9905243257317e6c
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>
(cherry picked from commit 69adaabface27880dd6c8dbfdeeb06cf3f3d346a)
src/common/options.cc