Whamcloud - gitweb
LU-12043 llite: make sure readahead cover current read 15/35215/4
authorWang Shilong <wshilong@ddn.com>
Thu, 13 Jun 2019 01:35:12 +0000 (09:35 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Jul 2019 06:21:45 +0000 (06:21 +0000)
commit8fbef5ee761920faa3c84f142f56934d6266a409
treec0f908a4a76ead1adb462df9974ff61c4b87486f
parent218fc688c11f081881b2cc1c1632ceaf9ec77a77
LU-12043 llite: make sure readahead cover current read

When doing readahead, @ria_end_min is used to indicate
how far we are expected to read to cover current
read.

update @ria_end_min unconditionally with IO end.
also @ria_end_min is closed interval which should be
calculated as start + count - 1;

Change-Id: If7f8da44da31623a73b363d5a18c1ec8b54da745
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/35215
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/rw.c
lustre/tests/sanity.sh