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:Waiman Long <longman@redhat.com> Signed-off-by:
Peter 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:
Ashay Jaiswal <quic_ashayj@quicinc.com>
Loading