]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: bch2_gc_btree() should not use btree_root_lock
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 5 Jul 2024 01:02:16 +0000 (21:02 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 12 Jul 2024 00:10:55 +0000 (20:10 -0400)
commit1841027c7de47527ed819a935b7aa340b9171eb5
tree07a49a3eec7a6c4ca9a1b653d545d4d80487a185
parentf236ea4bca00ce457e165403a50a8938dced9623
bcachefs: bch2_gc_btree() should not use btree_root_lock

btree_root_lock is for the root keys in btree_root, not the pointers to
the nodes themselves; this fixes a lock ordering issue between
btree_root_lock and btree node locks.

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