projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9aa39b
)
sched: Remove extra put_online_cpus() inside sched_setaffinity()
author
Michael wang
<
[email protected]
>
Mon, 28 Oct 2013 02:50:22 +0000
(10:50 +0800)
committer
Ingo Molnar
<
[email protected]
>
Mon, 28 Oct 2013 10:36:50 +0000
(11:36 +0100)
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 <
[email protected]
>
Tested-by: Fengguang Wu <
[email protected]
>
Signed-off-by: Michael Wang <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched/core.c
patch
|
blob
|
history
diff --git
a/kernel/sched/core.c
b/kernel/sched/core.c
index c06b8d345faef1bd3b796e309190250d75820fdb..7c61f313521df3600e52ebb5cd89da3d4bf7b5d3 100644
(file)
--- 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;
}