Commit 448eb7ef authored by Waiman Long's avatar Waiman Long Committed by Quentin Perret
Browse files

FROMGIT: 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.

Change-Id: I9da8961ebeefa2ac1d42eec3ea80ae2cbdddf485
Suggested-by: default avatarPeter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220922180041.1768141-6-longman@redhat.com
BUG: 254447891
(cherry picked from commit 0083fbe7953602c341454889af01ada601ffac3b
 https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git

 sched/core))
Signed-off-by: default avatarAshay Jaiswal <quic_ashayj@quicinc.com>
parent ec8cf941
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment