dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/12] dm: enable discard support for more targets
@ 2010-07-24 16:09 Mike Snitzer
  2010-07-24 16:09 ` [PATCH v2 01/12] dm: rename map_info flush_request to target_request_nr Mike Snitzer
                   ` (11 more replies)
  0 siblings, 12 replies; 18+ messages in thread
From: Mike Snitzer @ 2010-07-24 16:09 UTC (permalink / raw)
  To: dm-devel

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(-)

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-07-27 20:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-24 16:09 [PATCH v2 00/12] dm: enable discard support for more targets Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 01/12] dm: rename map_info flush_request to target_request_nr Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 02/12] dm: introduce num_discard_requests in dm_target structure Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 03/12] dm: remove the DM_TARGET_SUPPORTS_DISCARDS feature flag Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 04/12] dm: use common __issue_target_request for flush and discard support Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 05/12] dm: factor max_io_len for code reuse Mike Snitzer
2010-07-26 21:36   ` [PATCH v3 " Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 06/12] dm: split discard requests on target boundaries Mike Snitzer
2010-07-26 21:41   ` [PATCH v3 " Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 07/12] dm zero: silently drop discards too Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 08/12] dm error: return error for " Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 09/12] dm delay: enable discard support Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 10/12] block: update request stacking methods to support discards Mike Snitzer
2010-07-27 14:54   ` Christoph Hellwig
2010-07-24 16:09 ` [PATCH v2 11/12] dm mpath: enable discard support Mike Snitzer
2010-07-26 20:41   ` [PATCH v3 " Mike Snitzer
2010-07-24 16:09 ` [PATCH v2 12/12] dm stripe: enable efficient " Mike Snitzer
2010-07-27 20:32   ` [PATCH v3 " Mike Snitzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).