]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61f203c44c031c477f5883c2ef7330207a37e4ee
treeca5bce66ef7377d04b296dc864c434b45c1c8d4d
parent35abc64aa5100f64731d1b8279b1841945a04151
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