]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: start readahead from m_last_pos when the size of the continuing
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Tue, 7 Apr 2015 05:43:36 +0000 (13:43 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Tue, 7 Apr 2015 05:43:36 +0000 (13:43 +0800)
commit04fe26921fd2900e9cfa7f6b6fe78d91291311e0
tree33a9dab4ab29c9e3957020756345dfc95e45cee7
parent9c7ea3be912e64802f0493939960950058b4fef9
librbd: start readahead from m_last_pos when the size of the continuing
triggering request is big enough

If the size of the read triggering the continuing readahead is such big
that exceeding m_readahead_pos, should do the readahead starting from
m_last_pos.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/common/Readahead.cc