Commit 6e297a73 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Add missing sched_annotate_sleep() in bch2_journal_flush_seq_async()

parent 54541c1f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -706,6 +706,12 @@ int bch2_journal_flush_seq_async(struct journal *j, u64 seq,

		spin_unlock(&j->lock);

		/*
		 * We're called from bch2_journal_flush_seq() -> wait_event();
		 * but this might block. We won't usually block, so we won't
		 * livelock:
		 */
		sched_annotate_sleep();
		ret = bch2_journal_res_get(j, &res, jset_u64s(0), 0);
		if (ret)
			return ret;