Whamcloud - gitweb
LU-11427 llite: optimize read on open pages 34/33234/3
authorJinshan Xiong <jinshan.xiong@uber.com>
Tue, 25 Sep 2018 19:27:22 +0000 (12:27 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 29 Oct 2018 16:02:12 +0000 (16:02 +0000)
commit02e766f5ed95e8e393357d100e6f3ffe7cb7852b
treee940bb05327b694e51061c9ad74e68bb84109a12
parentd7073b8a33864e10d1656c9244a90f82a669520c
LU-11427 llite: optimize read on open pages

Current read-on-open implementation does allocate cl_page after data
are piggied back by open request, which is expensive and not
necessary.

This patch improves the case by just adding the pages into page cache.
As long as those pages will be discarded at lock revocation, there
should be no concerns.

Signed-off-by: Jinshan Xiong <jinshan.xiong@uber.com>
Change-Id: Idef1b70483e3780790ba5b95c26ef2d4141add5f
Reviewed-on: https://review.whamcloud.com/33234
Tested-by: Jenkins
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/llite/namei.c