summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorHui Su <sh_def@163.com>2026-09-02 23:02:09 +0800
committerPeter Zijlstra <peterz@infradead.org>2026-09-10 10:22:52 +0200
commitf5741d2b34519d387edf6e9798fc7030c20a35f3 (patch)
treea532aba422718cc001f52fee04f5d80fa144b4f5 /scripts/basic
parentc23810313bdf6b02f39a1f2a1464c4b18bd39e31 (diff)
downloadlinux-stable-f5741d2b34519d387edf6e9798fc7030c20a35f3.tar.gz
linux-stable-f5741d2b34519d387edf6e9798fc7030c20a35f3.zip
sched/core: Call wq_worker_tick() for the execution context
wq_worker_tick() accounts CPU time and detects CPU-intensive work for the kworker that is actually running. With proxy execution, rq->donor is the scheduling context while rq->curr is the execution context. Calling the hook with rq->donor can skip workqueue accounting when a kworker is executing on behalf of a donor task. It can also account a blocked kworker when the donor is a worker but rq->curr is the task actually executing. The former can delay WORKER_CPU_INTENSIVE handling and pool concurrency management, which can delay pending kernel work and userspace operations depending on it. Use rq->curr for the workqueue tick hook while retaining rq->donor for scheduler accounting. Fixes: af0c8b2bf67b ("sched: Split scheduler and execution contexts") Signed-off-by: Hui Su <sh_def@163.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Tejun Heo <tj@kernel.org> Link: https://patch.msgid.link/20260902150208.1209922-2-sh_def@163.com
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions