bcachefs: Add missing sched_annotate_sleep() in bch2_journal_flush_seq_async()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
54541c1f78
commit
6e297a73bc
@ -706,6 +706,12 @@ recheck_need_open:
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user