Whamcloud - gitweb
LU-17851 ldiskfs: restart long fallocate tx 11/55111/3
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Mon, 29 Apr 2024 17:37:34 +0000 (17:37 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:42:08 +0000 (04:42 +0000)
commitf317b5c30e478fdecceea4bd07c85ff305e9d81d
treebfa55d7069767786e02550f62f1236ff36b1b522
parent1a6ef725c285dd5c25c976956ba754dc470f6c1c
LU-17851 ldiskfs: restart long fallocate tx

__ext4_journal_ensure_credits() may allow a long fs operation
like fallocate to run for too long, if the initial credits
estimation is enough high.
The fix is to force tx restart if tx state is not T_RUNNING.

HPE-bug-id: LUS-12311
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: Ib03d78739997caa6d13690b41ef7d01609a3623b
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55111
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.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