Skip to content
Snippets Groups Projects
Commit d92b83f5 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: bch2_kthread_io_clock_wait() no longer sleeps until full amount


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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 741c1d3e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment