Re:Re: [PATCH v2] smp: avoid generic_exec_single cause system lockup

From: luferry
Date: Thu Jul 18 2019 - 05:06:40 EST












At 2019-07-18 16:07:58, "Thomas Gleixner" <tglx@xxxxxxxxxxxxx> wrote:
>On Thu, 18 Jul 2019, luferry@xxxxxxx wrote:
>
>> From: luferry <luferry@xxxxxxx>
>>
>> The race can reproduced by sending wait enabled IPI in softirq/irq env
>
>Which code path is doing that?
>
>Thanks,
>
> tglx

Thanks for your kindly reply.
I checked kernel and found no code path can run into this.
Actually , i encounter with this problem by my own code.
I need to do some specific urgent work periodicity and these
work may run for quite a while. So i can't disable irq during these work
which stops me from using hrtimer to do this. So i did add an extra
sofitrq action which may invoke smp_call.