Whamcloud - gitweb
LU-5263 llite: update ras stride offset 81/11181/2
authorBobi Jam <bobijam.xu@intel.com>
Tue, 1 Jul 2014 08:14:47 +0000 (16:14 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 29 Jul 2014 19:19:24 +0000 (19:19 +0000)
commit9e280281b8daf8ad69d04a5371121224ace28fbc
tree0fec5f65fe1596e74d8b436e5bf74051bc9305a6
parent442aabd5cc0277494fc85b486b39924aa8ed2cb9
LU-5263 llite: update ras stride offset

When a read ahead does not reach the end of the region reserved from
ras, we'd set ras::ras_next_readahead back to where we left off; For
stride read ahead, it needs to make sure that the offset is no less
than ras_stride_offset, so that the stride read ahead can work
correctly.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I4996f0d8174fa72ea4ef5994daddc0ab2f922f38
Reviewed-on: http://review.whamcloud.com/11181
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/rw.c