Re: [PATCH V3] Softirq:avoid large sched delay from the pending softirqs

2020-07-23 Thread jun qian
On Thu, Jul 23, 2020 at 9:41 PM Thomas Gleixner wrote: > > qianjun.ker...@gmail.com writes: > > From: jun qian > > + /* > > + * the softirq's action has been running for too much time > > + * so it may need to wakeup the ksoftirqd > > + */ > > +

Re: [PATCH V3] Softirq:avoid large sched delay from the pending softirqs

2020-07-23 Thread Thomas Gleixner
qianjun.ker...@gmail.com writes: > From: jun qian > + /* > + * 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) > +

[PATCH V3] Softirq:avoid large sched delay from the pending softirqs

2020-07-22 Thread qianjun . kernel
From: jun qian When get the pending softirqs, it need to process all the pending softirqs in the while loop. If the processing time of each pending softirq is need more than 2 msec in this loop, or one of the softirq will running a long time, according to the original code logic, it will process