diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2012-02-07 15:03:43 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-02-09 02:20:52 +0100 |
commit | 78340e26a54db960de238b511f5cdc74aebe4453 (patch) | |
tree | 453a9b5a01b90b3bfea7fde8cf420efa5d6a5eb3 /msg.h | |
parent | Fix: Sometimes mdmon throws core dump during reshape (diff) | |
download | mdadm-78340e26a54db960de238b511f5cdc74aebe4453.tar.xz mdadm-78340e26a54db960de238b511f5cdc74aebe4453.zip |
Flush mdmon before next reshape step during container operation
Using takeover operation for grow purposes, mdadm has to be sure
that mdmon processes all updates, and if necessary it will be closed
at takeover to raid0 operation. If mdmon is late, next array in container
is processed and due to race condition mdmon closes itself instead to monitor
next reshape operation.
Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'msg.h')
-rw-r--r-- | msg.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -34,5 +34,6 @@ extern int block_monitor(char *container, const int freeze); extern void unblock_monitor(char *container, const int unfreeze); extern int fping_monitor(int sock); extern int ping_manager(char *devname); +extern void flush_mdmon(char *container); #define MSG_MAX_LEN (4*1024*1024) |