Set the target's split_io field when building a dm-mirror device so incoming bio's won't span the mirror's internal regions. From: Kevin Corry [upstream] --- diff/drivers/md/dm-raid1.c 2005-06-17 20:48:29.000000000 +0100 +++ source/drivers/md/dm-raid1.c 2005-07-06 17:19:33.000000000 +0100 @@ -1060,6 +1060,7 @@ } ti->private = ms; + ti->split_io = ms->rh->region_size; r = kcopyd_client_create(DM_IO_PAGES, &ms->kcopyd_client); if (r) {