[PATCH] md: fix rdev->pending counts in raid1
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:46 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:08 +0000 (08:34 -0800)
commit03c902e17f40cfed63cd2494616f35fc9c58571b
treebfa65142a20a9b424dbd078149cecaa0177086fb
parentc708443c004f2310abdd7f1c353daa372b37f7a2
[PATCH] md: fix rdev->pending counts in raid1

When we do a user-requested check/repair, we lose count of the outstanding
requests...

Also make sure that when anything is written to md/sync_action, the
RECOVERY_NEEDED flag is set and the thread is woken up so any changes take
effect.

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/md.c
drivers/md/raid1.c