Whamcloud - gitweb
LU-14709 pcc: VM_WRITE should not trigger layout write 83/44483/7
authorQian Yingjin <qian@ddn.com>
Sat, 31 Jul 2021 07:45:56 +0000 (15:45 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 17 Sep 2021 14:08:10 +0000 (14:08 +0000)
commit373475a4f448c8e26a4dd7a3f88e7e962bc0b6e2
tree510b5a540cb27baa7a7b87ef8dae1c0c1b0ee36a
parent0c60662b3a389790b19736a60063a1208e06bf70
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().

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-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44483
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/cl_object.h
lustre/llite/llite_mmap.c
lustre/llite/vvp_io.c
lustre/lov/lov_io.c
lustre/tests/mmap_sanity.c