From: Mike Snitzer Date: Thu, 12 Aug 2010 03:14:24 +0000 (+0100) Subject: dm: split discard requests on target boundaries X-Git-Tag: v2.6.36-rc1~51^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a79245b3e5669dc203fec63644d988c451fe55d5;p=pandora-kernel.git 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 Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed