Whamcloud - gitweb
LU-16966 osd: take trunc_lock for fallocate
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 16 Oct 2023 12:52:58 +0000 (15:52 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Oct 2023 21:46:13 +0000 (21:46 +0000)
commit0536622653ba592f4e8e1a05c7ea65b0a19d5168
tree7d5cc3d7f6647faa2015f11de65adc16ba118f88
parent7b15c2f81291617b2794bc374b13874b845f47e6
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).

Lustre-change: https://review.whamcloud.com/52264
Lustre-commit: 51529fb57f85210e292a15c882cf25a4689ea77d

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I0bf38b1886fbf24656b45fe0f87fcbad2227672a
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52709
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c