Whamcloud - gitweb
LU-15803 sec: correctly handle page lock in ll_io_zero_page
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 28 Apr 2022 13:34:57 +0000 (15:34 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 10 May 2022 06:27:25 +0000 (06:27 +0000)
commitaecfb6cdf3125e720ef6ee8d613833286715fbb1
tree3b2c06f5bed0258268a88350d02649e84e2aefdc
parentace5181deca5a4bbce31ee83ca1314a0ab11b9d3
LU-15803 sec: correctly handle page lock in ll_io_zero_page

In ll_io_zero_page(), we need to make sure we have locked the page,
and it is up-to-date, before zeroing. So modify ll_io_read_page()
behavior to not disown the clpage for our use case. It avoids being
exposed to concurrent modifications.

Lustre-change: https://review.whamcloud.com/47170
Lustre-commit: edcd05e5ac035dd1daf263105df33d7cfc6dbf6e

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I58e4cf80374a798c9c4302364cf2fb39da9033bb
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/47229
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/llite_lib.c
lustre/llite/rw.c