]> git.baikalelectronics.ru Git - kernel.git/commit
dm: split discard requests on target boundaries
authorMike Snitzer <snitzer@redhat.com>
Thu, 12 Aug 2010 03:14:24 +0000 (04:14 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:14:24 +0000 (04:14 +0100)
commitbb031c1c3f0faf116da6813044dadcf5c09baa59
tree8814720781708a95ac0bd23bb5232aa5ed9337bd
parent93598832e3bf61e84fdc1f03423efa27ce882862
dm: split discard requests on target boundaries

Update __clone_and_map_discard to loop across all targets in a DM
device's table when it processes a discard bio.  If a discard crosses a
target boundary it must be split accordingly.

Update __issue_target_requests and __issue_target_request to allow a
cloned discard bio to have a custom start sector and size.

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