Whamcloud - gitweb
LU-13386 llite: allow current readahead to exceed reservation 47/38047/4
authorWang Shilong <wshilong@ddn.com>
Wed, 25 Mar 2020 01:14:07 +0000 (09:14 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 7 Apr 2020 17:21:43 +0000 (17:21 +0000)
commit777b04a09356afe425e9dc3dd3de385109990b52
tree029ed19950af7525d5535ea225160e4cabab9ec0
parent19420ef72262bd7e4a44b5e682a18ef808f7a922
LU-13386 llite: allow current readahead to exceed reservation

ll_ra_count_get() is designed to allow over reservation for performance
reasons, this could happen that multiple threads consuming a small
readahead window limit, it will fallback to small 4K read which hurts
performances.

Fixes: 8fbef5e("LU-12043 llite: make sure readahead cover current read")
Change-Id: Ied4ee0ffcd55c568c70f7d3074e810cd0034ef04
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/38047
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/rw.c
lustre/tests/sanity.sh