Skip to content
Commit 64ee1431 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Discard, invalidate workers are now per device



There's no reason for discards to be single threaded across all devices;
this will improve performance on multi device setups.

Additionally, making them per-device simplifies the refcounting on
bch_dev->io_ref; we now hold it for the duration that the discard path
is running, which fixes a race between the discard path and device
removal.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 472237b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment