bcachefs: Improve btree_deadlock debugfs output
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 2 Oct 2022 05:41:08 +0000 (01:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:42 +0000 (17:09 -0400)
commit40a44873a5ca9843532344d12583e6a3a78ea848
treedae065156a658dfa45826f099e7d7eec8dab203d
parent943f9946a6cc58e2c15ae39970547cddbe845190
bcachefs: Improve btree_deadlock debugfs output

This changes bch2_check_for_deadlock() to print the longest chains it
finds - when we have a deadlock because the cycle detector isn't finding
something, this will let us see what it's missing.

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