]> git.baikalelectronics.ru Git - kernel.git/commit
hotplug / x86: Add hotplug lock to missing places
authorToshi Kani <toshi.kani@hp.com>
Fri, 30 Aug 2013 00:22:07 +0000 (18:22 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Sep 2013 08:38:09 +0000 (10:38 +0200)
commit7c04e100dde50392cf3198f0aae40553bd699b9d
tree7498d2dcbc4bd2e3bf03434461ca36d31790a087
parentfe74f6627f715e94d57ad055ab3b87f90cd4d9cf
hotplug / x86: Add hotplug lock to missing places

lock_device_hotplug[_sysfs]() 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>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/kernel/topology.c
drivers/base/cpu.c