Re: [PATCH V3] Softirq:avoid large sched delay from the pending softirqs
From: Thomas Gleixner
Date: Thu Jul 23 2020 - 09:41:53 EST
qianjun.kernel@xxxxxxxxx writes:
> From: jun qian <qianjun.kernel@xxxxxxxxx>
> + /*
> + * the softirq's action has been running for too much time
> + * so it may need to wakeup the ksoftirqd
> + */
> + if (need_resched() && ktime_get() > end)
> + break;
As per my reply on V2 this is leaking non handled pending bits. If you
do a V4, can you please use sched_clock() instead of ktime_get()?
Thanks,
tglx