All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]sched/rt.c: leaf_rt_rq_list contains empty queues. Fix it
@ 2012-09-21 13:35 Kirill Tkhai
  2012-09-21 14:21 ` Kirill Tkhai
  2012-09-21 14:31 ` Steven Rostedt
  0 siblings, 2 replies; 5+ messages in thread
From: Kirill Tkhai @ 2012-09-21 13:35 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org; +Cc: Steven Rostedt, Ingo Molnar, Peter Zijlstra

Function __enqueue_rt_entity() adds an empty queue to leaf_rt_rq_list.

So, pick_next_highest_task_rt() picks empty queues. Fix it.

Signed-off-by: Kirill Tkhai <tkhai@yandex.ru>
---
 kernel/sched/rt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 944cb68..b07edb9 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -1103,7 +1103,7 @@ static void __enqueue_rt_entity(struct sched_rt_entity *rt_se, bool head)
 	if (group_rq && (rt_rq_throttled(group_rq) || !group_rq->rt_nr_running))
 		return;
 
-	if (!rt_rq->rt_nr_running)
+	if (rt_rq->rt_nr_running)
 		list_add_leaf_rt_rq(rt_rq);
 
 	if (head)

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-21 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 13:35 [PATCH]sched/rt.c: leaf_rt_rq_list contains empty queues. Fix it Kirill Tkhai
2012-09-21 14:21 ` Kirill Tkhai
2012-09-21 14:32   ` Steven Rostedt
2012-09-21 14:39     ` Kirill Tkhai
2012-09-21 14:31 ` Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.