Commit 50a3a47c authored by Waiman Long's avatar Waiman Long Committed by Quentin Perret
Browse files

BACKPORT: FROMGIT: sched: Always preserve the user requested cpumask



Unconditionally preserve the user requested cpumask on
sched_setaffinity() calls. This allows using it outside of the fairly
narrow restrict_cpus_allowed_ptr() use-case and fix some cpuset issues
that currently suffer destruction of cpumasks.

Change-Id: I24bb8639d91785e308188837b202a12fa3142d43
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-3-longman@redhat.com
BUG: 254447891
(cherry picked from commit c2a8c7b835ad6c72a1ff29d211f3aed454b29183
 https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git

 sched/core)
[ashayj: Resolved minor conflict in kernel/sched/core.c]
Signed-off-by: default avatarAshay Jaiswal <quic_ashayj@quicinc.com>
parent 54aeb5c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment