Whamcloud - gitweb
LU-14709 pcc: VM_WRITE should not trigger layout write
authorQian Yingjin <qian@ddn.com>
Sat, 31 Jul 2021 07:45:56 +0000 (15:45 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 3 Aug 2021 14:36:54 +0000 (14:36 +0000)
commit45549983d4b288471812821197a3a394bf910321
tree2de21e1b5b67e72fde3270a4e7e78ad1568db52c
parent724a7d4d2dd6d0b1924d699138420602442abbca
LU-14709 pcc: VM_WRITE should not trigger layout write

VM area marked with VM_WRITE means that pages may be written, but
mmap page write may never happen.
It should delay layout write until the actual modification on the
file happen in ->page_mkwrite().
Otherwise, it will trigger panic for PCC-RO sanity-pcc test_21f().

Lustre-change: https://review.whamcloud.com/44483
Lustre-commit: TBD (from de1fe260d8c88112b46857d69cf5fe9e5d06cfbd)

Fixes: f2d1c4ee4 ("LU-14647 flr: mmap write/punch does not stale other mirrors")
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I1cbfef8a4ed7e2c718324fd8a21bafd6157b5f0c
Reviewed-on: https://review.whamcloud.com/44452
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/cl_object.h
lustre/llite/llite_mmap.c
lustre/llite/vvp_io.c
lustre/lov/lov_io.c