dm: enable discard support for more targets
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 1 replyIn review
- v112 patches 1 replySuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | dm: rename map_info flush_request to target_request_nrdrivers/ drivers/ drivers/ +1 more | +16 | 0 replies | |
| 2/12 | dm: introduce num_discard_requests in dm_target structuredrivers/ include/ | +7 | 0 replies | |
| 3/12 | dm: remove the DM_TARGET_SUPPORTS_DISCARDS feature flagdrivers/ drivers/ drivers/ +1 more | +2 | 0 replies | |
| 4/12 | dm: use common __issue_target_request for flush and discard supportdrivers/ | +22 | 0 replies | |
| 5/12 | dm: factor max_io_len for code reusedrivers/ | +16 | 1 reply | |
| 6/12 | dm: split discard requests on target boundariesdrivers/ | +28 | 1 reply | |
| 7/12 | dm zero: silently drop discards toodrivers/ | +3 | 0 replies | |
| 8/12 | dm error: return error for discards toodrivers/ | +3 | 0 replies | |
| 9/12 | dm delay: enable discard supportdrivers/ | +1 | 0 replies | |
| 10/12 | block: update request stacking methods to support discardsblock/ | +5 | 1 reply | |
| 11/12 | dm mpath: enable discard supportdrivers/ | +1 | 1 reply | |
| 12/12 | dm stripe: enable efficient discard supportdrivers/ | +166 | 1 reply |
Reviews trailers per patch
1 of 12 patches has a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig |
|---|---|
| 1/12 | |
| 2/12 | |
| 3/12 | |
| 4/12 | |
| 5/12 | |
| 6/12 | |
| 7/12 | |
| 8/12 | |
| 9/12 | |
| 10/12 | R-b |
| 11/12 | |
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/12] dm: enable discard support for more targets
v2 rebases all patches to Alasdair's latest editing tree and linux-2.6-block's 'for-2.6.36'.
This patchset enables discard support for most of the DM targets that discards are intended to be supported on.
This patchset is also available here:
http://people.redhat.com/msnitzer/patches/dm-discard-advanced/latest/
The stripe target's discard support was the most tedious and challenging to implement. It may see further edits before it lands upstream.
The mirror target still needs discard support. Either I or someone else (nudge: Mikulas and/or Jon? :) will need to implement that.
The snapshot and crypt targets will not have discard support.
Snapshots must preserve any data that is deleted so the value of discard is negligible. Discard support for the origin target may be considered in the future (could be especially useful if origin and COW are different devices and origin is a thinly provisioned LUN).
Crypt devices are concerned with security and, until proven otherwise, it is believed that discards will leak too much pattern information to the crypt device's underlying storage (especially when underlying storage uses discards that zero data).
Mike Snitzer (12):
dm: rename map_info flush_request to target_request_nr
dm: introduce num_discard_requests in dm_target structure
dm: remove the DM_TARGET_SUPPORTS_DISCARDS feature flag
dm: use common __issue_target_request for flush and discard support
dm: factor max_io_len for code reuse
dm: split discard requests on target boundaries
dm zero: silently drop discards too
dm error: return error for discards too
dm delay: enable discard support
block: update request stacking methods to support discards dm mpath: enable discard support
dm stripe: enable efficient discard support
block/blk-core.c | 5 + drivers/md/dm-delay.c | 1 + drivers/md/dm-linear.c | 2 +- drivers/md/dm-mpath.c | 1 + drivers/md/dm-snap.c | 2 +- drivers/md/dm-stripe.c | 180 ++++++++++++++++++++++++++++++++++++++--- drivers/md/dm-table.c | 2 +- drivers/md/dm-target.c | 3 + drivers/md/dm-zero.c | 3 + drivers/md/dm.c | 89 +++++++++++++------- include/linux/device-mapper.h | 11 ++- 11 files changed, 253 insertions(+), 46 deletions(-)