]> www.infradead.org Git - users/hch/misc.git/commitdiff
jbd2: increase IO priority of checkpoint
authorJulian Sun <sunjunchao@bytedance.com>
Mon, 25 Aug 2025 12:53:39 +0000 (20:53 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 Sep 2025 18:37:07 +0000 (14:37 -0400)
In commit 6a3afb6ac6df ("jbd2: increase the journal IO's priority"),
the priority of IOs initiated by jbd2 has been raised, exempting them
from WBT throttling.
Checkpoint is also a crucial operation of jbd2. While no serious issues
have been observed so far, it should still be reasonable to exempt
checkpoint from WBT throttling.

Signed-off-by: Julian Sun <sunjunchao@bytedance.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/checkpoint.c

index 38861ca04899f0385673b8410b660a54458746b0..2d0719bf6d87cffe9d6105b1bf90e9c8b2fc9e3e 100644 (file)
@@ -131,7 +131,7 @@ __flush_batch(journal_t *journal, int *batch_count)
 
        blk_start_plug(&plug);
        for (i = 0; i < *batch_count; i++)
-               write_dirty_buffer(journal->j_chkpt_bhs[i], REQ_SYNC);
+               write_dirty_buffer(journal->j_chkpt_bhs[i], JBD2_JOURNAL_REQ_FLAGS);
        blk_finish_plug(&plug);
 
        for (i = 0; i < *batch_count; i++) {