mdmon: ping will wait for manage_mon to catch up.
authorNeilBrown <neilb@suse.de>
Fri, 18 Jul 2008 06:37:06 +0000 (16:37 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 18 Jul 2008 06:37:06 +0000 (16:37 +1000)
commit1eb252b8488bbdd62ad602561fe8a90ef9079271
treee5281b6756936f74ea4cde5dbb835063f1e6a3ba
parent103f2410ec581620367d6fde67a3a62f077062a7
mdmon: ping will wait for manage_mon to catch up.

When a 'ping' (empty message) is sent to mdmon, we wait for
'monitor' to do a full loop to make sure it has caught up
with anything that needs doing.
This allows synchronisation between mdadm and mdmon.

Maybe monitor should signal managemon rather than managemon polling...

Signed-off-by: Neil Brown <neilb@suse.de>
managemon.c
mdmon.h
monitor.c