Re: [patch v2] LMB: Add basic spin locking to lmb

2008-05-19 Thread David Miller
From: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Date: Mon, 19 May 2008 22:32:58 -0400 > I think the core memory hotplug is... However, we used to not change the > LMB when doing so (afaik, I'm travelling and not looking at the code > right now). However, things like PS3 memory hotplug tries to ke

Re: [patch v2] LMB: Add basic spin locking to lmb

2008-05-19 Thread Benjamin Herrenschmidt
On Mon, 2008-05-19 at 19:22 -0700, David Miller wrote: > From: Geoff Levand <[EMAIL PROTECTED]> > Date: Mon, 19 May 2008 17:55:45 -0700 > > > Add a spinlock to struct lmb to enforce concurrency in > > lmb_add(), lmb_remove(), lmb_analyze(), lmb_find(), and > > lmb_dump_all(). > > > > This lockin

Re: [patch v2] LMB: Add basic spin locking to lmb

2008-05-19 Thread David Miller
From: Geoff Levand <[EMAIL PROTECTED]> Date: Mon, 19 May 2008 17:55:45 -0700 > Add a spinlock to struct lmb to enforce concurrency in > lmb_add(), lmb_remove(), lmb_analyze(), lmb_find(), and > lmb_dump_all(). > > This locking is needed for SMP systems that access the lmb structure > during hot m

[patch v2] LMB: Add basic spin locking to lmb

2008-05-19 Thread Geoff Levand
Add a spinlock to struct lmb to enforce concurrency in lmb_add(), lmb_remove(), lmb_analyze(), lmb_find(), and lmb_dump_all(). This locking is needed for SMP systems that access the lmb structure during hot memory add and remove operations after secondary cpus have been started. Signed-off-by: Ge