[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080408013936.b84ae895.akpm@linux-foundation.org>
Date: Tue, 8 Apr 2008 01:39:36 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: ego@...ibm.com
Cc: paulmck@...ux.vnet.ibm.com, linux-kernel@...r.kernel.org,
mathieu.desnoyers@...ymtl.ca, mingo@...e.hu, hch@...radead.org,
mmlnx@...ibm.com, dipankar@...ibm.com, dsmith@...hat.com,
rostedt@...dmis.org, adrian.bunk@...ial.fi, a.p.zijlstra@...llo.nl,
niv@...ibm.com, dvhltc@...ibm.com, rusty@....ibm.com,
jkenisto@...ux.vnet.ibm.com, oleg@...sign.ru
Subject: Re: [PATCH,RFC] Add call_rcu_sched()
On Tue, 8 Apr 2008 13:40:48 +0530 Gautham R Shenoy <ego@...ibm.com> wrote:
> > > + rdp = RCU_DATA_CPU(cpu);
> <-- here ------\
> > > + spin_lock_irqsave(&rdp->lock, flags); |
> > > + |
> > > + /* |
> > > + * We are running on this CPU irq-disabled, so no |
> > > + * CPU can go offline until we re-enable irqs. |
> > |
> > but, but, but. The cpu at `cpu' could have gone offline just before we |
> > disabled local interrupts. |
> |
> In that case the CPU_DEAD callback should have migrated the rcu-lists to |
> a cpu which is online. |
|
But local variable rdp might be pointing at the now-offlined CPU's data? -------/
--
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