Whamcloud - gitweb
LU-16044 osd: discard pagecache in truncate's declaration 33/48033/14
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 25 Jul 2022 13:26:40 +0000 (16:26 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 15 Oct 2022 05:56:23 +0000 (05:56 +0000)
commit0bb491b2ecf494c3f78fa08a101af8af7853a0fe
tree90f28994a26bb82f49c1c40f1d0c8ea45e179767
parent56b5b5be43d88e6041c0ee60dc85b84c375d0e0d
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.

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/fs/lustre-release/+/48033
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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