diff options
author | Julian Sun <sunjunchao@bytedance.com> | 2025-08-27 20:18:12 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2025-09-25 14:56:31 -0400 |
commit | 46e75c56dfeafb6756773b71cabe187a6886859a (patch) | |
tree | 66dbc42c5a29602865c8f5568aa4c93805b5106b /scripts/kernel-doc.py | |
parent | d6ace46c82fd2d3bdb58c35e3dd5cb9e83e136bf (diff) |
ext4: increase IO priority of fastcommit
The following code paths may result in high latency or even task hangs:
1. fastcommit io is throttled by wbt.
2. jbd2_fc_wait_bufs() might wait for a long time while
JBD2_FAST_COMMIT_ONGOING is set in journal->flags, and then
jbd2_journal_commit_transaction() waits for the
JBD2_FAST_COMMIT_ONGOING bit for a long time while holding the write
lock of j_state_lock.
3. start_this_handle() waits for read lock of j_state_lock which
results in high latency or task hang.
Given the fact that ext4_fc_commit() already modifies the current
process' IO priority to match that of the jbd2 thread, it should be
reasonable to match jbd2's IO submission flags as well.
Suggested-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Julian Sun <sunjunchao@bytedance.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-ID: <20250827121812.1477634-1-sunjunchao@bytedance.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/kernel-doc.py')
0 files changed, 0 insertions, 0 deletions