Whamcloud - gitweb
LU-14616 readahead: fix reserving for unaliged read
authorWang Shilong <wshilong@ddn.com>
Tue, 20 Apr 2021 01:47:25 +0000 (09:47 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jul 2021 08:56:59 +0000 (08:56 +0000)
commitd05530215831fb3324e9387c2b338763cae69137
treea74b2c69acfb212ac618e78b171894e5e828cf20
parentf646fa1febc997c779abe50f7afc784d2a148612
LU-14616 readahead: fix reserving for unaliged read

If read is [2K, 3K] on x86 platform, we only need
read one page, but it was calculated as 2 pages.

This could be problem, as we need reserve more
pages credits, vvp_page_completion_read() will only
free actual reading pages, which cause @ra_cur_pages
leaked.

Lustre-change: https://review.whamcloud.com/43377/
Lustre-commit: 5e7e9240d27a4b74127ea7a26d910ae41a6e1cb1

Fixes: d4a54de84c0 ("LU-12367 llite: Fix page count for unaligned reads")
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: I3cf03965196c1af833184d9cfc16779f79f5722c
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-on: https://review.whamcloud.com/44239
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/rw.c
lustre/llite/vvp_io.c
lustre/tests/sanity.sh