bcachefs: Fix a scheduler splat in __bch2_next_write_buffer_flush_journal_buf()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 May 2024 14:14:13 +0000 (10:14 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 May 2024 14:14:13 +0000 (10:14 -0400)
commit72e71bf0298c7ed985bcd0d3c7ff4ca19de60373
treecb44a79a26083529d6c4fc91e947f726457a0696
parentc258c08add1cc8fa7719f112c5db36c08c507f1e
bcachefs: Fix a scheduler splat in __bch2_next_write_buffer_flush_journal_buf()

We're using mutex_lock() inside a wait_event() conditional -
prepare_to_wait() has already flipped task state, so potentially
blocking ops need annotation.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c