Re: [PATCH V2] mdmon: wait for previous mdmon to exit during takeover

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

 



On 2/22/19 7:30 AM, Pawel Baldysiak wrote:
> Since the patch c76242c5("mdmon: get safe mode delay file descriptor
> early"), safe_mode_dalay is set properly by initrd mdmon.  But in some
> cases with filesystem traffic since the very start of the system, it
> might take a while to transit to clean state.  Due to fact that new
> mdmon does not wait for the old one to exit - it might happen that the
> new one switches safe_mode_delay back to seconds, before old one exits.
> As the result two mdmons are running concurrently on same array.
> 
> Wait for the old mdmon to exit by pinging it with SIGUSR1 signal, just
> in case it is sleeping.
> 
> Signed-off-by: Pawel Baldysiak <pawel.baldysiak@xxxxxxxxx>
> ---
>  mdmon.c | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 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