public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]rcu classic: update qlen when cpu offline
@ 2008-06-26  2:06 Lai Jiangshan
  2008-06-26 14:13 ` Paul E. McKenney
  0 siblings, 1 reply; 3+ messages in thread
From: Lai Jiangshan @ 2008-06-26  2:06 UTC (permalink / raw)
  To: Andrew Morton, Paul E. McKenney; +Cc: Linux Kernel Mailing List


When callbacks are moved from offline cpu to this cpu,
the qlen field of this rdp should be updated.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
diff --git a/kernel/rcuclassic.c b/kernel/rcuclassic.c
index f4ffbd0..42aead6 100644
--- a/kernel/rcuclassic.c
+++ b/kernel/rcuclassic.c
@@ -373,6 +373,10 @@ static void __rcu_offline_cpu(struct rcu_data *this_rdp,
 	rcu_move_batch(this_rdp, rdp->donelist, rdp->donetail);
 	rcu_move_batch(this_rdp, rdp->curlist, rdp->curtail);
 	rcu_move_batch(this_rdp, rdp->nxtlist, rdp->nxttail);
+
+	local_irq_disable();
+	this_rdp->qlen += rdp->qlen;
+	local_irq_enable();
 }
 
 static void rcu_offline_cpu(int cpu)



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

end of thread, other threads:[~2008-07-13 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-26  2:06 [PATCH]rcu classic: update qlen when cpu offline Lai Jiangshan
2008-06-26 14:13 ` Paul E. McKenney
2008-07-13 21:13   ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox