Re: [PATCH 00/51] CPU hotplug: Fix issues with callback registration

2014-02-06 Thread Srivatsa S. Bhat
On 02/06/2014 05:44 PM, Gautham R Shenoy wrote: > On Thu, Feb 06, 2014 at 04:34:33PM +0530, Srivatsa S. Bhat wrote: >>> >>> CPU_POST_DEAD notification, is invoked with the cpu_hotplug.lock >>> dropped. This was necessary for subsystems which would be waiting for >>> some other thread to finish some

Re: [PATCH 00/51] CPU hotplug: Fix issues with callback registration

2014-02-06 Thread Gautham R Shenoy
On Thu, Feb 06, 2014 at 04:34:33PM +0530, Srivatsa S. Bhat wrote: > > > > CPU_POST_DEAD notification, is invoked with the cpu_hotplug.lock > > dropped. This was necessary for subsystems which would be waiting for > > some other thread to finish some work, and that other thread could > > invoke get

Re: [PATCH 00/51] CPU hotplug: Fix issues with callback registration

2014-02-06 Thread Srivatsa S. Bhat
On 02/06/2014 04:34 PM, Srivatsa S. Bhat wrote: > On 02/06/2014 03:08 PM, Gautham R Shenoy wrote: >> Hi, >> >> On Thu, Feb 06, 2014 at 03:34:36AM +0530, Srivatsa S. Bhat wrote: >>> Hi, >>> [...] >> Couple of comments: >> >> Right now, cpu_add_remove_lock is being used to >> 1) Serialize the cpu-ho

Re: [PATCH 00/51] CPU hotplug: Fix issues with callback registration

2014-02-06 Thread Srivatsa S. Bhat
On 02/06/2014 03:08 PM, Gautham R Shenoy wrote: > Hi, > > On Thu, Feb 06, 2014 at 03:34:36AM +0530, Srivatsa S. Bhat wrote: >> Hi, >> >> >> To solve these issues and provide a race-free method to register CPU hotplug >> callbacks, this patchset introduces new variants of the callback registration

Re: [PATCH 00/51] CPU hotplug: Fix issues with callback registration

2014-02-06 Thread Gautham R Shenoy
Hi, On Thu, Feb 06, 2014 at 03:34:36AM +0530, Srivatsa S. Bhat wrote: > Hi, > > > To solve these issues and provide a race-free method to register CPU hotplug > callbacks, this patchset introduces new variants of the callback registration > APIs that don't hold the cpu_add_remove_lock, and expor

[PATCH 00/51] CPU hotplug: Fix issues with callback registration

2014-02-05 Thread Srivatsa S. Bhat
Hi, Many subsystems and drivers have the need to register CPU hotplug callbacks from their init routines and also perform initialization for the CPUs that are already online. But unfortunately there is no race-free way to achieve this today. For example, consider this piece of code: get_