https://github.com/torvalds/linux
Revision 005eca5e74b222db4360f8938140eb843d283325 authored by NeilBrown on 22 August 2005, 20:11:08 UTC, committed by Linus Torvalds on 23 August 2005, 18:44:30 UTC
We weren't actually waking up the md thread after setting
MD_RECOVERY_NEEDED when assembling an array, so it is possible to lose a
race and not actually start resync.

So add a call to md_wakeup_thread, and while we are at it, remove all the
"if (mddev->thread)" guards as md_wake_thread does its own checking.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 4c5640c
History
Tip revision: 005eca5e74b222db4360f8938140eb843d283325 authored by NeilBrown on 22 August 2005, 20:11:08 UTC
[PATCH] md: make sure resync gets started when array starts.
Tip revision: 005eca5

README

back to top