Whamcloud - gitweb
LU-16468 llite: protect layout before read IO going 22/49622/6
authorBobi Jam <bobijam@whamcloud.com>
Fri, 13 Jan 2023 04:36:01 +0000 (12:36 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Nov 2023 21:41:27 +0000 (21:41 +0000)
commite050b91c6c471d3576eba3bbf4f3c31aef644e3f
tree4448f7e54f15d3ff995e92b44c576661034772d0
parent1dbcd0bab881fac38d8a5e4ef1559f12618f8f0e
LU-16468 llite: protect layout before read IO going

It's possible that the before the read IO, file_read_confine_iter()
->lov_attr_get() to get proper kms (known minimum size of the file),
and lov_attr_get() presumes that it's called under ongoing IO, which
protected the layout from changing, while it's not in this case.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I1b36ec6e158331e63e8026ee2b986d5a7e3cb6dc
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49622
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c