Skip to content

Commit c604044

Browse files
author
Kent Overstreet
committed
bcachefs: Fix srcu warning in check_topology
check_topology doesn't need the srcu lock and doesn't use normal btree transactions - we can just drop the srcu lock. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 18c520f commit c604044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/btree_gc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ int bch2_check_topology(struct bch_fs *c)
513513
struct bpos pulled_from_scan = POS_MIN;
514514
int ret = 0;
515515

516+
bch2_trans_srcu_unlock(trans);
517+
516518
for (unsigned i = 0; i < btree_id_nr_alive(c) && !ret; i++) {
517519
struct btree_root *r = bch2_btree_id_root(c, i);
518520
bool reconstructed_root = false;

0 commit comments

Comments
 (0)