]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Wait: also wait if an action is about to start.
authorNeilBrown <neilb@suse.de>
Wed, 1 May 2013 00:23:40 +0000 (10:23 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 1 May 2013 00:23:40 +0000 (10:23 +1000)
commit276be5147ed1ff80a380b50a34ae83f8a1f21b8e
treeb65cb0415f6b2e03566698a3dcc45fc2441419f2
parent79b2ed4f243b4ac59b4985f513b87dcde4fa6b8f
Wait: also wait if an action is about to start.

If a sync/recover action is about to start but hasn't actually begun
yet, /proc/mdstat won't show it, but md/sync_action will (it checks
MD_RECOVERY_NEEDED).
So when /proc/mdstat seems to say nothing is happening, double check
with md/sync_action.

Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c