]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: add option to disable kernel pagecache 10108/head
authorYan, Zheng <zyan@redhat.com>
Mon, 10 Aug 2015 07:15:48 +0000 (15:15 +0800)
committerXiaoxi Chen <xiaoxchen@ebay.com>
Sat, 2 Jul 2016 07:43:27 +0000 (00:43 -0700)
commitfd7ff96cbc4a2e9b38d805f36cd4e72a32f04925
treea5dd7e09a1ef56cb5a041ff758abf50700e6d2ef
parentaa211cb4ff0a7e9cac4779187848b3ba00c39bf9
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>
(cherry picked from commit 0f11ec237d4692d313a038ed61aa07a3f40555ba)

Conflicts:
src/common/config_opts.h
           follow the content in patchset, set fuse_use_invalidate_cb
           to True. Which is also the backport
           for http://tracker.ceph.com/issues/15634
src/client/fuse_ll.cc
src/common/config_opts.h