]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] device-mapper: dm-raid1: Limit bios to size of mirror region
authorAlasdair G Kergon <agk@redhat.com>
Fri, 8 Jul 2005 00:59:34 +0000 (17:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:24:11 +0000 (18:24 -0700)
commitd88854f08961d26f3a63cfae7972188d26a128e4
tree60a7319d8c79898325baaab17b655acaf2ec8040
parent374a6cf281771b23e263efd31fdc896924394dba
[PATCH] device-mapper: dm-raid1: Limit bios to size of mirror region

Set the target's split_io field when building a dm-mirror device so
incoming bios won't span the mirror's internal regions.  Without this,
regions can be accessed while not holding correct locks and data corruption
is possible.

Reported-By: "Zhao Qian" <zhaoqian@aaastor.com>
From: Kevin Corry <kevcorry@us.ibm.com>
Signed-Off-By: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-raid1.c