dm raid/raid1: enable discard support when any devices support discard
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dm: add support for targets that allow discard when one device doesdrivers/ drivers/ drivers/ +5 more | +39 | 0 replies | |
| 2/3 | dm raid: only check for RAID 4/5/6 once during discard support setupdrivers/ | +5 | 0 replies | |
| 3/3 | dm raid/raid1: enable discard support when any devices support discarddrivers/ drivers/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] dm raid/raid1: enable discard support when any devices support discard
This makes dm raid and dm raid1 (mirroring) consistent with md raid, which supports discard when only some of the devices support discard.
Another patch will be needed to fix the queue discard limits sysfs files, fixing fstrim --fstab, but these patches suffice to fix fstrim / and I haven't finished figuring out how the queue discard limits are set yet.
Paul Wise (3):
dm: add support for targets that allow discard when one device does dm raid: only check for RAID 4/5/6 once during discard support setup dm raid/raid1: enable discard support when any devices support discard
drivers/md/dm-cache-target.c | 2 +- drivers/md/dm-clone-target.c | 2 +- drivers/md/dm-log-writes.c | 2 +- drivers/md/dm-raid.c | 21 ++++++++++----------- drivers/md/dm-raid1.c | 1 + drivers/md/dm-table.c | 32 +++++++++++++++++++++----------- drivers/md/dm-thin.c | 8 ++++---- drivers/md/dm-zoned-target.c | 2 +- include/linux/device-mapper.h | 13 ++++++++----- include/uapi/linux/dm-ioctl.h | 4 ++-- 10 files changed, 50 insertions(+), 37 deletions(-)
Signature · 1 line
2.26.1