Re: [PATCH] mdmon: don't attempt to manage new arrays when terminating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/22/19 4:15 AM, Artur Paszkiewicz wrote:
> 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@xxxxxxxxx>
> ---
>  managemon.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Applied!

Thanks,
Jes




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux