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 <kent.overstreet@linux.dev>
1 parent 472237b commit 64ee143

5 files changed

Lines changed: 161 additions & 133 deletions

File tree

0 commit comments

Comments
 (0)