]> git.ipfire.org Git - thirdparty/mdadm.git/commit - managemon.c
FIX: After discarding array give chance monitor to remove it
authorAdam Kwolek <adam.kwolek@intel.com>
Mon, 28 Mar 2011 11:56:49 +0000 (13:56 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 4 Apr 2011 23:24:17 +0000 (09:24 +1000)
commit84f3857fec97c9fd459c23e45d8d5abe9dae9da0
tree9c804749f03db202929545fe7a83f9e08882471b
parenteb28e119b03fd5149886ed516fa4bb006ad3602e
FIX: After discarding array give chance monitor to remove it

When raid0 expansion occurs, takeover operation is used.
After backward takeover monitor remains in memory.

This happens due to remaining just removed active array in mdmon structures.
If there is no other monitored arrays, mdmon has to finish his work.

Problem was introduced in patch (2011.03.22):
    mdmon: Stop keeping track of RAID0 (and LINEAR) arrays.
Prior to this patch mdmon kicking occurs via replace_array() where
wakeup_monitor() was called.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
managemon.c