sched/core: Check for available DL bandwidth in cpuset_cpu_inactive()
authorJuri Lelli <juri.lelli@arm.com>
Tue, 31 Mar 2015 08:53:37 +0000 (09:53 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Apr 2015 15:42:56 +0000 (17:42 +0200)
commit3c18d447b3b36a8d3c90dc37dfbd363cdb685d0a
treeea9dd78ff9cebdd03d7f8079b2c01e5331586054
parent4cd57f97135840f637431c92380c8da3edbe44ed
sched/core: Check for available DL bandwidth in cpuset_cpu_inactive()

Hotplug operations are destructive w.r.t. cpusets. In case such an
operation is performed on a CPU belonging to an exlusive cpuset, the
DL bandwidth information associated with the corresponding root
domain is gone even if the operation fails (in sched_cpu_inactive()).

For this reason we need to move the check we currently have in
sched_cpu_inactive() to cpuset_cpu_inactive() to prevent useless
cpusets reconfiguration in the CPU_DOWN_FAILED path.

Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@gmail.com>
Link: http://lkml.kernel.org/r/1427792017-7356-2-git-send-email-juri.lelli@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c