]> Git Repo - linux.git/commit
sched: Always clear user_cpus_ptr in do_set_cpus_allowed()
authorWaiman Long <[email protected]>
Thu, 22 Sep 2022 18:00:41 +0000 (14:00 -0400)
committerPeter Zijlstra <[email protected]>
Thu, 27 Oct 2022 09:01:22 +0000 (11:01 +0200)
commit851a723e45d1c4c8f6f7b0d2cfbc5f53690bb4e9
tree29fd78c23541482be77e972ac9a55d3a50365da3
parentda019032819a1f09943d3af676892ec8c627668e
sched: Always clear user_cpus_ptr in do_set_cpus_allowed()

The do_set_cpus_allowed() function is used by either kthread_bind() or
select_fallback_rq(). In both cases the user affinity (if any) should be
destroyed too.

Suggested-by: Peter Zijlstra <[email protected]>
Signed-off-by: Waiman Long <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
kernel/sched/core.c
This page took 0.049078 seconds and 4 git commands to generate.