]> git.baikalelectronics.ru Git - kernel.git/commit
md: fix data corruption when a degraded raid5 array is reshaped
authorDan Williams <dan.j.williams@intel.com>
Tue, 8 Jan 2008 23:32:53 +0000 (15:32 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 Jan 2008 00:10:35 +0000 (16:10 -0800)
commit4636494ca3049d1f58f33c271353fb559badf7a0
tree6c35efe23f565d27bec046d8eed3c5901e1d0090
parented077fb630cf55bf91a2b264650daca30d250715
md: fix data corruption when a degraded raid5 array is reshaped

We currently do not wait for the block from the missing device to be
computed from parity before copying data to the new stripe layout.

The change in the raid6 code is not techincally needed as we don't delay
data block recovery in the same way for raid6 yet.  But making the change
now is safer long-term.

This bug exists in 2.6.23 and 2.6.24-rc

Cc: <stable@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/raid5.c