diff options
| author | Chen Yu <yu.c.chen@intel.com> | 2026-09-21 17:37:26 -0700 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2026-09-22 10:50:49 +0200 |
| commit | 65efcccddc83d6a19e8a2e2a6117811e39e589bf (patch) | |
| tree | 867e324274da27e5b86c55f87eb16a2cdba6dd15 /scripts/Makefile.headersinst | |
| parent | b636fef85bda7d1bab9c0a45067ab1508d79d946 (diff) | |
| download | linux-stable-65efcccddc83d6a19e8a2e2a6117811e39e589bf.tar.gz linux-stable-65efcccddc83d6a19e8a2e2a6117811e39e589bf.zip | |
sched/cache: Skip kernel threads for cache aware scheduling to rubustify the code
Kernel thread should not be covered by cache aware scheduling as
it borrows the statistics from the user space thread. Filter the
kernel thread in account_mm_sched().
In theory a kernel thread does not have any valid
cache group, so !grp should gate the kernel thread.
Add the PF_KTHREAD check explicitly here for safety
reasons, to guard against future modifications and
to pair with task_tick_cache().
Fixes: df0d98475954 ("sched/cache: Introduce infrastructure for cache-aware load balancing")
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: <stable@kernel.org> # 7.2.x
Link: https://patch.msgid.link/058f0c6ea7b991c177a17de347fa3157f25489a7.1790035273.git.tim.c.chen@linux.intel.com
Diffstat (limited to 'scripts/Makefile.headersinst')
0 files changed, 0 insertions, 0 deletions
