bcachefs: Extra kthread_should_stop() calls for copygc
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 Nov 2023 21:33:52 +0000 (16:33 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 29 Nov 2023 03:58:23 +0000 (22:58 -0500)
commit415e5107b0dce0e5407ae4a46700cd7e8859e252
treedde5d17cfa9d1f5acdc92c1879cfa29317b7dc35
parent463086d99889c84ce0960fac2815c596f26cc0e5
bcachefs: Extra kthread_should_stop() calls for copygc

This fixes a bug where going read-only was taking longer than it should
have due to copygc forgetting to check kthread_should_stop()

Additionally: fix a missing is_kthread check in bch2_move_ratelimit().

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/move.c
fs/bcachefs/movinggc.c