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)
committerJiri Slaby <jslaby@suse.cz>
Fri, 20 Jun 2014 15:34:00 +0000 (17:34 +0200)
commit3ae4e547f5106b3610ff4e2ead70e4b6263477c2
treed55ff389037e1a87bcc80e2361e1b629c331f039
parent3ddbd9a2d572434bd5b63757a70d9532c0027de7
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: Jiri Slaby <jslaby@suse.cz>
drivers/md/dm-cache-target.c