[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBDvKvMykzzZYk7=j=bwX7kC7J3H0vv33_vwbVMw+w4OMw@mail.gmail.com>
Date: Fri, 25 May 2012 21:41:57 +0800
From: Hillf Danton <dhillf@...il.com>
To: LKML <linux-kernel@...r.kernel.org>,
Hillf Danton <dhillf@...il.com>
Subject: [patch] BFS 420: get correct runqueue when waking up newly created task
When waking up newly created task, runqueue should be determined based on the
parent task for correctly checking if the current task is parent.
--- a/kernel/sched/bfs.c Mon May 14 20:50:38 2012
+++ b/kernel/sched/bfs.c Fri May 25 20:07:06 2012
@@ -1771,7 +1771,7 @@ void wake_up_new_task(struct task_struct
unsigned long flags;
struct rq *rq;
- rq = task_grq_lock(p, &flags);
+ rq = task_grq_lock(p->parent, &flags);
p->state = TASK_RUNNING;
parent = p->parent;
/* Unnecessary but small chance that the parent changed CPU */
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists