Skip to content

Commit 64ee143

Browse files
author
Kent Overstreet
committed
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: Kent Overstreet <[email protected]>
1 parent 472237b commit 64ee143

File tree

5 files changed

+161
-133
lines changed

5 files changed

+161
-133
lines changed

0 commit comments

Comments
 (0)