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:
269484a
)
sched: set_cpus_allowed_ptr(): Don't use rq->migration_thread after unlock
author
Oleg Nesterov
<
[email protected]
>
Tue, 30 Mar 2010 16:58:29 +0000
(18:58 +0200)
committer
Ingo Molnar
<
[email protected]
>
Fri, 2 Apr 2010 18:11:05 +0000
(20:11 +0200)
Trivial typo fix. rq->migration_thread can be NULL after
task_rq_unlock(), this is why we have "mt" which should be
used instead.
Signed-off-by: Oleg Nesterov <
[email protected]
>
Signed-off-by: Peter Zijlstra <
[email protected]
>
LKML-Reference: <
20100330165829
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 49d2fa7b687a6cd9956e5d7179ab26822bcff6f1..528a10592c16782e813238e050fb1abba79e05e7 100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-5387,7
+5387,7
@@
int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
get_task_struct(mt);
task_rq_unlock(rq, &flags);
- wake_up_process(
rq->migration_thread
);
+ wake_up_process(
mt
);
put_task_struct(mt);
wait_for_completion(&req.done);
tlb_migrate_finish(p->mm);