bcachefs: Fix failure to suspend
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 1 Oct 2018 04:33:42 +0000 (00:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:10 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/move.c

index b29e7c322e9a6c7287462601c4838ed21167d40b..9402b45bf8687c3edf4898f5682755c3bb3c857f 100644 (file)
@@ -504,7 +504,6 @@ int bch2_move_data(struct bch_fs *c,
                        if (unlikely(freezing(current))) {
                                bch2_btree_iter_unlock(&stats->iter);
                                move_ctxt_wait_event(&ctxt, list_empty(&ctxt.reads));
-                               closure_sync(&ctxt.cl);
                                try_to_freeze();
                        }
                } while (delay);