]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: For promote object, add correctly fadvise flags for
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 24 Mar 2015 02:57:56 +0000 (10:57 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 24 Mar 2015 02:57:56 +0000 (10:57 +0800)
commit7dcd2ae030a54368aa21f374f711867e7a63fae7
treea2abdceb05c03336f9e477d4bd0e0521df19689d
parent5982bbe602a0e01aef5dbfa8ff41d7b5df4f135e
osd/ReplicatedPG: For promote object, add correctly fadvise flags for
copy_get

For promote object, it copy whole data from base tier. So add
fadvise_sequential will get good readahead.
For fadvise_dontneed, it only for there is no proxy-read avoid
decrease the performance for proxy-read.

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