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.c | |
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.c')
-rw-r--r-- | msg.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -487,3 +487,13 @@ int ping_manager(char *devname) close(sfd); return err; } + +/* 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 + */ +void flush_mdmon(char *container) +{ + ping_manager(container); + ping_monitor(container); +} |