[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071205224429.4572.92409.stgit@novell1.haskins.net>
Date: Wed, 05 Dec 2007 17:45:33 -0500
From: Gregory Haskins <ghaskins@...ell.com>
To: mingo@...e.hu
Cc: linux-kernel@...r.kernel.org, rostedt@...dmis.org,
ghaskins@...ell.com
Subject: [PATCH] sched: update root-domain spans upon departure
Hmm...I made a last second "optimization" before sending that patch out and
then realized it was racy. Try this one instead...(sorry for the churn)
-Greg
------------------------------
sched: update root-domain spans upon departure
We shouldnt leave cpus enabled in the spans if that RQ has left the domain.
Signed-off-by: Gregory Haskins <ghaskins@...ell.com>
---
kernel/sched.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 05a9a81..02f04bc 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5843,6 +5843,9 @@ static void rq_attach_root(struct rq *rq, struct root_domain *rd)
class->leave_domain(rq);
}
+ cpu_clear(rq->cpu, old_rd->span);
+ cpu_clear(rq->cpu, old_rd->online);
+
if (atomic_dec_and_test(&old_rd->refcount))
kfree(old_rd);
}
--
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