diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-06-23 07:53:44 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-06-26 01:47:55 +0300 |
commit | 64ee1431cc7d11e01a1007ead0afe737781cbbab (patch) | |
tree | e833a476f9f64b521cebea7cddea06cbc8439408 /lib/closure.c | |
parent | 472237b69d071c877e97bf0bc3eab1be865fad29 (diff) | |
download | linux-64ee1431cc7d11e01a1007ead0afe737781cbbab.tar.xz |
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>
Diffstat (limited to 'lib/closure.c')
0 files changed, 0 insertions, 0 deletions