]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Make various async objs visible in debugfs
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 21 Apr 2025 17:02:51 +0000 (13:02 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:30 +0000 (20:14 -0400)
commit41e51769b8a649dd3db7070370cb6aa127f86307
tree9a176a2c560fce08536e0773214c389f85030c73
parent0499a82b18b5ddee0d97d2cfcae0c0120f858c1f
bcachefs: Make various async objs visible in debugfs

Add async objs list for
- promote_op
- bch_read_bio
- btree_read_bio
- btree_write_bio

This gets us introspection on in-flight async ops, and because under the
hood it uses fast_lists (percpu slot buffer on top of a radix tree),
it'll be fast enough to enable in production.

This will be very helpful for debugging "something got stuck" issues,
which have been cropping up from time to time (in the CI, especially
with folio writeback).

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/async_objs.c
fs/bcachefs/async_objs_types.h
fs/bcachefs/btree_io.c
fs/bcachefs/btree_io.h
fs/bcachefs/data_update.h
fs/bcachefs/io_read.c
fs/bcachefs/io_read.h