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)
committerMike Snitzer <snitzer@redhat.com>
Tue, 27 May 2014 14:33:05 +0000 (10:33 -0400)
commitf1daa838e861ae1a0fb7cd9721a21258430fcc8c
treeca5bce66ef7377d04b296dc864c434b45c1c8d4d
parent80c578930ce77ba8bcfb226a184b482020bdda7b
dm cache: always split discards on cache block boundaries

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>
Cc: stable@vger.kernel.org # v3.9+
drivers/md/dm-cache-target.c