]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/Replicated: Add proper fadvise flags for ops in do_proxy_read. 4012/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 18 Mar 2015 07:57:07 +0000 (15:57 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 24 Mar 2015 02:59:24 +0000 (10:59 +0800)
commit79e1d15abb609756d1f091653db70029b1c12a7e
treecd13f8a6ea20aea52e152cbf7391e471b22e541d
parentad1fd6e151b52cd634c77e7769c621d55ac6a6db
osd/Replicated: Add proper fadvise flags for ops in do_proxy_read.

For CACHEMODE_WRITEBACK, if evict_mode isn't full, after do_proxy_read,
it will do promote_object. So if has read-data ops, we should use
fadvise sequential. It make the promote object get more data from page
cache.
Also remove the dontnned & nocache avoid prmote reread from disk.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/ReplicatedPG.cc