diff options
author | NeilBrown <neilb@suse.de> | 2008-07-18 08:37:06 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-07-18 08:37:06 +0200 |
commit | 1eb252b8488bbdd62ad602561fe8a90ef9079271 (patch) | |
tree | e5281b6756936f74ea4cde5dbb835063f1e6a3ba /mdmon.h | |
parent | Make sure resync_start is initialised properly and maintained properly (diff) | |
download | mdadm-1eb252b8488bbdd62ad602561fe8a90ef9079271.tar.xz mdadm-1eb252b8488bbdd62ad602561fe8a90ef9079271.zip |
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>
Diffstat (limited to 'mdmon.h')
-rw-r--r-- | mdmon.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -62,3 +62,4 @@ struct mdstat_ent *mdstat_read(int hold, int start); extern int exit_now, manager_ready; extern int mon_tid, mgr_tid; +extern int monitor_loop_cnt; |