Commit dcffc3b1 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Split up bch_dev.io_ref



We now have separate per device io_refs for read and write access.

This fixes a device removal bug where the discard workers were still
running while we're removing alloc info for that device.

It's also a bit of hardening; we no longer allow writes to devices that
are read-only.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f1350c2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment