]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix bch2_gc_accounting_done() locking
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 6 Jun 2024 18:33:27 +0000 (14:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:15 +0000 (19:00 -0400)
commit820b9efeb142a45b2c55df0806feb34936025c2a
treefb03d8bfa6b466ac0efd712aa23edbfacacf172f
parentf73e6bb6d6c70b72aff021237b8c4722cc43a919
bcachefs: Fix bch2_gc_accounting_done() locking

The transaction commit path takes mark_lock, so we shouldn't be holding
it; use a bpos as an iterator so that we can drop and retake.

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