summaryrefslogtreecommitdiff
path: root/mdmon.c
diff options
context:
space:
mode:
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>2019-02-22 10:15:45 +0100
committerJes Sorensen <jsorensen@fb.com>2019-02-28 15:46:01 -0500
commit69d084784de196acec8ab703cd1b379af211d624 (patch)
treeb0ded165db9cb429a8f067bd8df35bb68906a375 /mdmon.c
parent76b906d2406cdf136f64de77e881eb2d180108d9 (diff)
downloadmdadm-69d084784de196acec8ab703cd1b379af211d624.tar.gz
mdmon: don't attempt to manage new arrays when terminating
When mdmon gets a SIGTERM, it stops managing arrays that are clean. If there is more that one array in the container and one of them is dirty and the clean one is still present in mdstat, mdmon will treat it as a new array and start managing it again. This leads to a cycle of remove_old() / manage_new() calls for the clean array, until the other one also becomes clean. Prevent this by not calling manage_new() if sigterm is set. Also, remove a check for sigterm in manage_new() because the condition will never be true. Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdmon.c')
0 files changed, 0 insertions, 0 deletions