Whamcloud - gitweb
LU-16966 osd: take trunc_lock for fallocate 10/52710/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 16 Oct 2023 13:59:08 +0000 (16:59 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 13 Nov 2023 02:07:41 +0000 (02:07 +0000)
commit9c97d1969e2298fdfe5daa616e36cbe17a9b3d5e
tree99166772db6bf9c38548fee8c7e1d45f914f399a
parent628765a87189603ad5d37ae7ab5bd10409b6f2cf
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/fs/lustre-release/+/52710
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c