Skip to content

Commit 75474a5

Browse files
author
Kent Overstreet
committed
bcachefs: Journal writes are now IOPRIO_CLASS_RT
System performance is particularly sensitive to journal write latency, the number of outstanding journal writes is bounded and we can't issue journal flushes until other journal writes have completed. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 35f5197 commit 75474a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/journal_io.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "sb-clean.h"
1818
#include "trace.h"
1919

20+
#include <linux/ioprio.h>
2021
#include <linux/string_choices.h>
2122

2223
void bch2_journal_pos_from_member_info_set(struct bch_fs *c)
@@ -1763,6 +1764,7 @@ static CLOSURE_CALLBACK(journal_write_submit)
17631764
bio->bi_iter.bi_sector = ptr->offset;
17641765
bio->bi_end_io = journal_write_endio;
17651766
bio->bi_private = ca;
1767+
bio->bi_ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_RT, 0);
17661768

17671769
BUG_ON(bio->bi_iter.bi_sector == ca->prev_journal_sector);
17681770
ca->prev_journal_sector = bio->bi_iter.bi_sector;

0 commit comments

Comments
 (0)