]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: For flush object, set the src object with fadvise sequential/nocache.
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 18 Mar 2015 07:12:08 +0000 (15:12 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 24 Mar 2015 02:59:24 +0000 (10:59 +0800)
commitad1fd6e151b52cd634c77e7769c621d55ac6a6db
treecb58745f0fc9b61b6647a9ab6a4075a9ebac6c0e
parent2f61772ae51367c819ec4e724cc58d7e6cecc987
osd/ReplicatedPG: For flush object, set the src object with fadvise sequential/nocache.

Copy data from cache tier is copy whole data of object. So
fadvise_sequential can make good readahead.
From the base tier point, it don't hope left data in cache tier after
copying, so use fadvise_nocache is good method.

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