]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: add option to disable kernel pagecache 5521/head
authorYan, Zheng <zyan@redhat.com>
Mon, 10 Aug 2015 07:15:48 +0000 (15:15 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 10 Jun 2016 01:22:41 +0000 (09:22 +0800)
commit0f11ec237d4692d313a038ed61aa07a3f40555ba
treebe6f5ca3d3e5483de824d3701ea603c364c998e9
parent9806fcda17134bf8a57cb065368d6a1e31e76c99
ceph-fuse: add option to disable kernel pagecache

When multiple clients read/write to a file at the same time, we need
to disable cache and let reads/writes go to OSDs. In ceph-fuse case,
there are two caches, one is in ceph-fuse, another one is in kernel.
We can't disable/enable the kernel cache dynamically. So adding an
config option to completely disable kernel cache. Disabling kernel
cache may reduce performance, so option is disabled by default.

Fixes: 12653
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/fuse_ll.cc
src/common/config_opts.h