Skip to content

Commit 6e297a7

Browse files
author
Kent Overstreet
committed
bcachefs: Add missing sched_annotate_sleep() in bch2_journal_flush_seq_async()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 54541c1 commit 6e297a7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

fs/bcachefs/journal.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,12 @@ int bch2_journal_flush_seq_async(struct journal *j, u64 seq,
706706

707707
spin_unlock(&j->lock);
708708

709+
/*
710+
* We're called from bch2_journal_flush_seq() -> wait_event();
711+
* but this might block. We won't usually block, so we won't
712+
* livelock:
713+
*/
714+
sched_annotate_sleep();
709715
ret = bch2_journal_res_get(j, &res, jset_u64s(0), 0);
710716
if (ret)
711717
return ret;

0 commit comments

Comments
 (0)