dm cache: always split discards on cache block boundaries
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 23 May 2014 18:10:01 +0000 (14:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jun 2014 19:03:23 +0000 (12:03 -0700)
commit50faf9370b0aa357a9d114faafc2327505547928
tree86cd0e1a24d6e6f65a3946a6bffa19a74e75a7d2
parentb1da22af26d907e88925c2ce1a9ee527bd899875
dm cache: always split discards on cache block boundaries

commit f1daa838e861ae1a0fb7cd9721a21258430fcc8c upstream.

The DM cache target cannot cope with discards that span multiple cache
blocks, so each discard bio that spans more than one cache block must
get split by the DM core.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-cache-target.c