summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMichael wang <wangyun@linux.vnet.ibm.com>2013-10-28 10:50:22 +0800
committerIngo Molnar <mingo@kernel.org>2013-10-28 11:36:50 +0100
commitac9ff7997b6f2b31949dcd2495ac671fd9ddc990 (patch)
treee4f028e899cf804d60a20b4aed3a4473a996fb6c /kernel
parente9aa39bb7c4415ca26484239cc3a6686d549bf4f (diff)
downloadblackbird-op-linux-ac9ff7997b6f2b31949dcd2495ac671fd9ddc990.tar.gz
blackbird-op-linux-ac9ff7997b6f2b31949dcd2495ac671fd9ddc990.zip
sched: Remove extra put_online_cpus() inside sched_setaffinity()
Commit 6acce3ef8: sched: Remove get_online_cpus() usage has left one extra put_online_cpus() inside sched_setaffinity(), remove it to fix the WARN: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3166 at kernel/cpu.c:84 put_online_cpus+0x43/0x70() ... [<ffffffff810c3fef>] put_online_cpus+0x43/0x70 [ [<ffffffff810efd59>] sched_setaffinity+0x7d/0x1f9 [ ... Reported-by: Fengguang Wu <fengguang.wu@intel.com> Tested-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Michael Wang <wangyun@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/526DD0EE.1090309@linux.vnet.ibm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index c06b8d345fae..7c61f313521d 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3716,7 +3716,6 @@ long sched_setaffinity(pid_t pid, const struct cpumask *in_mask)
p = find_process_by_pid(pid);
if (!p) {
rcu_read_unlock();
- put_online_cpus();
return -ESRCH;
}
OpenPOWER on IntegriCloud