lkml.org 
[lkml]   [2013]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] hotplug, x86: Add hotplug lock to missing places
On Sat, Aug 17, 2013 at 01:46:57PM -0600, Toshi Kani wrote:
> lock_device_hotplug() serializes CPU & Memory online/offline and hotplug
> operations. However, this lock is not held in the debug interfaces below
> that initiate CPU online/offline operations.
>
> - _debug_hotplug_cpu(), cpu0 hotplug test interface enabled by
> CONFIG_DEBUG_HOTPLUG_CPU0.
> - cpu_probe_store() and cpu_release_store(), cpu hotplug test interface
> enabled by CONFIG_ARCH_CPU_PROBE_RELEASE.
>
> This patch changes the above interfaces to hold lock_device_hotplug().
>
> Signed-off-by: Toshi Kani <toshi.kani@hp.com>
> ---
> arch/x86/kernel/topology.c | 2 ++
> drivers/base/cpu.c | 16 ++++++++++++++--
> 2 files changed, 16 insertions(+), 2 deletions(-)

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>


\
 
 \ /
  Last update: 2013-08-18 01:41    [W:0.227 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site