linux/fs/bcachefs/clock.c
Kent Overstreet a12bbb494f bcachefs: bch2_kthread_io_clock_wait() no longer sleeps until full amount
commit d92b83f592 upstream.

Drop t he loop in bch2_kthread_io_clock_wait(): this allows the code
that uses it to be woken up for other reasons, and fixes a bug where
rebalance wouldn't wake up when a scan was requested.

This raises the possibility of spurious wakeups, but callers should
always be able to handle that reasonably well.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-16 19:14:30 +01:00

193 lines
4.2 KiB