Re: [PATCH] Fix find busiest queue 2.6.0-test9

From: Andrew Morton
Date: Sat Nov 08 2003 - 17:56:57 EST


Con Kolivas <kernel@xxxxxxxxxxx> wrote:
>
> Hi
>
> I believe this is a simple typo / variable name mixup between rq_src and
> this_rq. So far all testing shows positive (if minor) improvements.
>

Looks right to me. I'll queue this up for the 2.6.1 deluge.

--- linux-2.6.0-test9-base/kernel/sched.c 2003-10-26 07:52:58.000000000 +1100
+++ linux-2.6.0-test9/kernel/sched.c 2003-11-09 01:25:07.684769327 +1100
@@ -1073,11 +1073,11 @@ static inline runqueue_t *find_busiest_q
continue;

rq_src = cpu_rq(i);
- if (idle || (rq_src->nr_running < this_rq->prev_cpu_load[i]))
+ if (idle || (rq_src->nr_running < rq_src->prev_cpu_load[i]))
load = rq_src->nr_running;
else
- load = this_rq->prev_cpu_load[i];
- this_rq->prev_cpu_load[i] = rq_src->nr_running;
+ load = rq_src->prev_cpu_load[i];
+ rq_src->prev_cpu_load[i] = rq_src->nr_running;

if ((load > max_load) && (rq_src != this_rq)) {
busiest = rq_src;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/