bcachefs: Make sure bch2_move_ratelimit() also waits for move_ops
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 23 Nov 2023 04:44:47 +0000 (23:44 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 24 Nov 2023 07:10:28 +0000 (02:10 -0500)
commit261af2f1c6b668586325a37df02f904c1c273a7d
tree1aa07653d56d441193b143186bb947c5dce024af
parent50e029c6390a6795869b742a5fce1e57d6a76c82
bcachefs: Make sure bch2_move_ratelimit() also waits for move_ops

This adds move_ctxt_wait_event_timeout(), which can sleep for a timeout
while also issueing pending moves as reads complete.

Co-developed-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/move.c
fs/bcachefs/move.h