cpuset: Fix cpuset_cpus_allowed_fallback(), don't update tsk->rt.nr_cpus_allowed
The rule is, we have to update tsk->rt.nr_cpus_allowed if we change tsk->cpus_allowed. Otherwise RT scheduler may confuse. Signed-off-by:KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by:
Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/4DD4B3FA.5060901@jp.fujitsu.com Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- include/linux/cpuset.h 1 addition, 1 deletioninclude/linux/cpuset.h
- include/linux/sched.h 7 additions, 0 deletionsinclude/linux/sched.h
- kernel/cpuset.c 2 additions, 2 deletionskernel/cpuset.c
- kernel/kthread.c 2 additions, 2 deletionskernel/kthread.c
- kernel/sched.c 12 additions, 7 deletionskernel/sched.c
Loading
Please register or sign in to comment