dm stripe: support discards
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 12 Aug 2010 03:14:26 +0000 (04:14 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:14:26 +0000 (04:14 +0100)
commit7b76ec11fec40203836b488496d2df082d5b2022
tree8b3c75295945f0533206c699139e55a30bcd426e
parenta79245b3e5669dc203fec63644d988c451fe55d5
dm stripe: support discards

The DM core will submit a discard bio to the stripe target for each
stripe in a striped DM device.  The stripe target will determine
stripe-specific portions of the supplied bio to be remapped into
individual (at most 'num_discard_requests' extents).  If a given
stripe-specific discard bio doesn't touch a particular stripe the bio
will be dropped.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-stripe.c