mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
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 @@ 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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user