bcachefs: Fix an assert in copygc thread shutdown path
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 14 Mar 2023 15:48:07 +0000 (11:48 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:57 +0000 (17:09 -0400)
commitc639c29ce6882f4f77a81d778ef4741d5a5979d9
treee0e19f11a44743dbdf6427c6c78759d8ced52cda
parent2d004446c8044e1660adc53e55d151c607a472d6
bcachefs: Fix an assert in copygc thread shutdown path

We're not supposed to have nested (locked) btree_trans on the stack:
this means copygc shutdown needs to exit our btree_trans before exiting
the move_ctxt, which calls bch2_write().

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