Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Fix lock ordering with snapshot_create_lock

We must not hold btree locks while taking snapshot_create_lock - this
fixes a lockdep splat.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+1
+1
fs/bcachefs/snapshot.c
··· 1447 1447 } 1448 1448 } 1449 1449 1450 + bch2_trans_unlock(trans); 1450 1451 down_write(&c->snapshot_create_lock); 1451 1452 1452 1453 for_each_btree_key(trans, iter, BTREE_ID_snapshots,