Re: [PATCH] Relay CPU Hotplug support

2006-12-22 Thread Gautham R Shenoy
On Fri, Dec 22, 2006 at 02:44:58AM -0800, Andrew Morton wrote: > On Fri, 22 Dec 2006 16:07:24 +0530 > Gautham R Shenoy <[EMAIL PROTECTED]> wrote: > > > While we are at this per-subsystem cpuhotplug "locking", here's a > > proposal that might put an end to the workqueue deadlock woes. > > Oleg is

Re: [PATCH] Relay CPU Hotplug support

2006-12-22 Thread Oleg Nesterov
On 12/22, Oleg Nesterov wrote: > > void flush_work(struct workqueue_struct *wq, struct work_struct *work) > { > struct cpu_workqueue_struct *cwq; > > cwq = get_wq_data(work); > if (!cwq) > return; > > spin_l

Re: [PATCH] Relay CPU Hotplug support

2006-12-22 Thread Oleg Nesterov
On 12/22, Andrew Morton wrote: > > On Fri, 22 Dec 2006 16:07:24 +0530 > Gautham R Shenoy <[EMAIL PROTECTED]> wrote: > > > While we are at this per-subsystem cpuhotplug "locking", here's a > > proposal that might put an end to the workqueue deadlock woes. > > Oleg is working on some patches which

Re: [PATCH] Relay CPU Hotplug support

2006-12-22 Thread Andrew Morton
On Fri, 22 Dec 2006 16:07:24 +0530 Gautham R Shenoy <[EMAIL PROTECTED]> wrote: > While we are at this per-subsystem cpuhotplug "locking", here's a > proposal that might put an end to the workqueue deadlock woes. Oleg is working on some patches which will permit us to cancel or wait upon a particu

Re: [PATCH] Relay CPU Hotplug support

2006-12-22 Thread Gautham R Shenoy
Hi Andrew, While we are at this per-subsystem cpuhotplug "locking", here's a proposal that might put an end to the workqueue deadlock woes. I'm yet to cook up a patch for this, but here's the idea in brief. On Wed, Dec 20, 2006 at 11:23:50PM -0800, Andrew Morton wrote: > to the relay driver. Wh

Re: [PATCH] Relay CPU Hotplug support

2006-12-21 Thread Tom Zanussi
Andrew Morton writes: > On Wed, 20 Dec 2006 19:31:01 -0500 > Mathieu Desnoyers <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > Here is a patch, result of the combined work of Tom Zanussi and myself, to > > add > > CPU hotplug support to Relay. > > > > ... > > > > + > > + lock_cpu_hotpl

Re: [PATCH] Relay CPU Hotplug support

2006-12-20 Thread Andrew Morton
On Wed, 20 Dec 2006 19:31:01 -0500 Mathieu Desnoyers <[EMAIL PROTECTED]> wrote: > Hi, > > Here is a patch, result of the combined work of Tom Zanussi and myself, to add > CPU hotplug support to Relay. > > ... > > + > + lock_cpu_hotplug(); > + for_each_online_cpu(i) > + if (ch

Re: [PATCH] Relay CPU Hotplug support

2006-12-20 Thread Mathieu Desnoyers
* Tom Zanussi ([EMAIL PROTECTED]) wrote: > Mathieu Desnoyers writes: > > Hi, > > > > Here is a patch, result of the combined work of Tom Zanussi and myself, to > add > > CPU hotplug support to Relay. > > > > This patch applies on 2.6.20-rc1-git7. > > > > Signed-off-by : Mathieu Desnoyer

Re: [PATCH] Relay CPU Hotplug support

2006-12-20 Thread Tom Zanussi
Mathieu Desnoyers writes: > Hi, > > Here is a patch, result of the combined work of Tom Zanussi and myself, to > add > CPU hotplug support to Relay. > > This patch applies on 2.6.20-rc1-git7. > > Signed-off-by : Mathieu Desnoyers <[EMAIL PROTECTED]> > Hi Mathieu, It looks like you

[PATCH] Relay CPU Hotplug support

2006-12-20 Thread Mathieu Desnoyers
Hi, Here is a patch, result of the combined work of Tom Zanussi and myself, to add CPU hotplug support to Relay. This patch applies on 2.6.20-rc1-git7. Signed-off-by : Mathieu Desnoyers <[EMAIL PROTECTED]> --- a/include/linux/relay.h +++ b/include/linux/relay.h @@ -24,7 +24,7 @@ #define FIX_SIZ