bcachefs: Don't call bch2_journal_pin_drop() under key cache lock
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 3 Mar 2023 04:51:47 +0000 (23:51 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:50 +0000 (17:09 -0400)
commit5b3008bc6182e56fdd5ba36fdf324430d0792e0c
tree291743193d5101ca8d90a3373e23db6d49149703
parent91db80668149a4eb19ab3bfcfecf9f09ad1f2c8f
bcachefs: Don't call bch2_journal_pin_drop() under key cache lock

This fixes a (harmless) lockdep splat, due to a lock order violation in
the key cache exit path.

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