Re: [PATCH v2 resubmit] sched: Warn on long periods of pending need_resched

2021-04-19 Thread Peter Zijlstra
On Fri, Apr 16, 2021 at 02:29:36PM -0700, Josh Don wrote: > From: Paul Turner > > CPU scheduler marks need_resched flag to signal a schedule() on a > particular CPU. But, schedule() may not happen immediately in cases > where the current task is executing in the kernel mode (no > preemption state

[PATCH v2 resubmit] sched: Warn on long periods of pending need_resched

2021-04-16 Thread Josh Don
From: Paul Turner CPU scheduler marks need_resched flag to signal a schedule() on a particular CPU. But, schedule() may not happen immediately in cases where the current task is executing in the kernel mode (no preemption state) for extended periods of time. This patch adds a warn_on if need_res