From: Oleg Nesterov Date: Tue, 30 Mar 2010 16:58:29 +0000 (+0200) Subject: sched: set_cpus_allowed_ptr(): Don't use rq->migration_thread after unlock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47a70985e5c093ae03d8ccf633c70a93761d86f2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git sched: set_cpus_allowed_ptr(): Don't use rq->migration_thread after unlock 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 Signed-off-by: Peter Zijlstra LKML-Reference: <20100330165829.GA18284@redhat.com> Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched.c b/kernel/sched.c index 49d2fa7b687a..528a10592c16 100644 --- 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);