commit | d92b83f592d810aded2e5f90db5f560cc8cf577b | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@linux.dev> | Mon Jan 15 14:15:26 2024 -0500 |
committer | Kent Overstreet <kent.overstreet@linux.dev> | Sun Jan 21 13:27:09 2024 -0500 |
tree | 6f1e09ed5dddae7fbe8b1d8fec6f0ecb306a119c | |
parent | 741c1d3ec1a4a91d0bf18f200e2f0f8bed1ee7e9 [diff] |
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: Kent Overstreet <kent.overstreet@linux.dev>