Whamcloud - gitweb
LU-16044 osd: discard pagecache in truncate's declaration
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 25 Jul 2022 13:26:40 +0000 (16:26 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 27 Oct 2022 03:17:42 +0000 (03:17 +0000)
commitd814318d8f15cdfa062b3b20bfe036f5b825f60e
tree02b5ecf2dfdb8d75bbceded3ad2967b8bed07d4e
parent501fa525603e4c94028e9cf92f8388e9862252fa
LU-16044 osd: discard pagecache in truncate's declaration

to avoid taking pagelock inside a transaction which conflicts
with the write path where we take pagelock before any another one.
this should be safe as the write path writes the pages out
synchronously, so they should be clean by truncate.

Lustre-change: https://review.whamcloud.com/48033
Lustre-commit: 0bb491b2ecf494c3f78fa08a101af8af7853a0fe

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: Iba555ace2ce9ef34ab5517375ecb5c176f738a02
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48885
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ofd/ofd_objects.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-zfs/osd_object.c