[PATCH] md: fix raid6 resync check/repair code
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:17 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:03 +0000 (08:34 -0800)
commitca65b73bd9c301d243df93780f7b26579e6c9204
tree1ca8157e11033989ee94c20b1f2d4c936f9dc09c
parent6cce3b23f6f8e974c00af7a9b88f1d413ba368a8
[PATCH] md: fix raid6 resync check/repair code

raid6 currently does not check the P/Q syndromes when doing a resync, it just
calculates the correct value and writes it.  Doing the check can reduce writes
(often to 0) for a resync, and it is needed to properly implement the

  echo check > sync_action

operation.

This patch implements the appropriate checks and tidies up some related code.

It also allows raid6 user-requested resync to bypass the intent bitmap.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid6main.c
include/linux/raid/raid5.h