Whamcloud - gitweb
LU-14907 pcc: VM_WRITE should not trigger layout write 83/44483/1
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:19:25 +0000 (08:19 -0600)
commitde1fe260d8c88112b46857d69cf5fe9e5d06cfbd
tree9fa677252501748b032e0f852ea9c2212d274c2e
parente9cffb256d10a3bb28c957f0bf06c61793a9610b
LU-14907 pcc: VM_WRITE should not trigger layout write

VM area marked with VM_WRITE means that pages may be written, but
mmap page wirte 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().

Fixes: f2d1c4ee4 ("LU-14647 flr: mmap write/punch does not stale other mirrors")
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I1cbfef8a4ed7e2c718324fd8a21bafd6157b5f0c
lustre/include/cl_object.h
lustre/llite/llite_mmap.c
lustre/llite/vvp_io.c
lustre/lov/lov_io.c