Revision d92b83f592d810aded2e5f90db5f560cc8cf577b authored by Kent Overstreet on 15 January 2024, 19:15:26 UTC, committed by Kent Overstreet on 21 January 2024, 18:27:09 UTC
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>
1 parent 741c1d3
History
File Mode Size
Kconfig -rw-r--r-- 516 bytes
Makefile -rw-r--r-- 362 bytes
ast.c -rw-r--r-- 6.6 KB
ast.h -rw-r--r-- 1.4 KB
config.c -rw-r--r-- 22.7 KB
config.h -rw-r--r-- 1.4 KB
debug_fs.c -rw-r--r-- 23.6 KB
dir.c -rw-r--r-- 7.3 KB
dir.h -rw-r--r-- 914 bytes
dlm_internal.h -rw-r--r-- 22.2 KB
lock.c -rw-r--r-- 156.3 KB
lock.h -rw-r--r-- 3.1 KB
lockspace.c -rw-r--r-- 21.2 KB
lockspace.h -rw-r--r-- 1.3 KB
lowcomms.c -rw-r--r-- 47.9 KB
lowcomms.h -rw-r--r-- 2.0 KB
lvb_table.h -rw-r--r-- 541 bytes
main.c -rw-r--r-- 1.8 KB
member.c -rw-r--r-- 16.7 KB
member.h -rw-r--r-- 1.3 KB
memory.c -rw-r--r-- 3.7 KB
memory.h -rw-r--r-- 1.3 KB
midcomms.c -rw-r--r-- 39.1 KB
midcomms.h -rw-r--r-- 1.8 KB
plock.c -rw-r--r-- 14.3 KB
rcom.c -rw-r--r-- 17.4 KB
rcom.h -rw-r--r-- 1.0 KB
recover.c -rw-r--r-- 23.1 KB
recover.h -rw-r--r-- 1.4 KB
recoverd.c -rw-r--r-- 8.8 KB
recoverd.h -rw-r--r-- 781 bytes
requestqueue.c -rw-r--r-- 5.0 KB
requestqueue.h -rw-r--r-- 747 bytes
user.c -rw-r--r-- 25.4 KB
user.h -rw-r--r-- 463 bytes
util.c -rw-r--r-- 1.6 KB
util.h -rw-r--r-- 545 bytes

back to top