]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: Add block plugging to read paths
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 15 Oct 2024 01:35:44 +0000 (21:35 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:15 +0000 (01:36 -0500)
commit27de0ee39f810dab2e948d2c465f8fcf8cbf9f8c
tree5125cee5e3e2ecdff6feb3c71f6eb1e0df4c62f9
parentbe5a7be1062b2e588519d7ed68ff2e8f4ed0a42a
bcachefs: Add block plugging to read paths

This will help with some of the btree_trans srcu lock hold time warnings
that are still turning up; submit_bio() can block for awhile if the
device is sufficiently congested.

It's not a perfect solution since blk_plug bios are submitted when
scheduling; we might want a way to disable the "submit on context
switch" behaviour, or switch to our own plugging in the future.

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