]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid1,raid10: don't compare excess byte during consistency check.
authorNeilBrown <neilb@suse.de>
Sun, 1 Apr 2012 15:39:05 +0000 (01:39 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 3 Apr 2012 05:39:23 +0000 (15:39 +1000)
commit96d75c6b9b017349b460b7bd93befc5986538b19
tree0124b6866ecd63b3a8913a6661e1d96699d60b71
parent6d4c59c2fab23b6108cef08b4ba37d088a1963ef
md/raid1,raid10: don't compare excess byte during consistency check.

When comparing two pages read from different legs of a mirror, only
compare the bytes that were read, not the whole page.

In most cases we read a whole page, but in some cases with
bad blocks or odd sizes devices we might read fewer than that.

This bug has been present "forever" but at worst it might cause
a report of two many mismatches and generate a little bit
extra resync IO, so there is no need to back-port to -stable
kernels.

Reported-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c
drivers/md/raid10.c