Whamcloud - gitweb
LU-16966 osd: take trunc_lock for fallocate 64/52264/6
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 4 Sep 2023 12:34:44 +0000 (15:34 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Oct 2023 05:47:10 +0000 (05:47 +0000)
commit51529fb57f85210e292a15c882cf25a4689ea77d
tree0045e8a55506fbc3cacf69d6091d5b2a11dffd6b
parentd8d4df24c69246e7cb554d4083a451dd62f11b2b
LU-16966 osd: take trunc_lock for fallocate

as fallocate may need few transactions (or transaction restarted)
we have to avoid any concurrent writes/truncates on this object
until fallocate supports 'restart-from-beginning' - first stop the
transaction, then release the lock, then repeat again (like
the write path does).

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I0bf38b1886fbf24656b45fe0f87fcbad2227672a
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52264
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c