]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc094066c2054fa1e60f65548fc6b7077d573a16
tree8b3c75295945f0533206c699139e55a30bcd426e
parentbb031c1c3f0faf116da6813044dadcf5c09baa59
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