public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Protect cpu map updates from ACPI processor
@ 2013-08-12 15:45 Toshi Kani
  2013-08-12 15:45 ` [PATCH 1/2] CPU hotplug: Export cpu_hotplug_begin() interface Toshi Kani
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Toshi Kani @ 2013-08-12 15:45 UTC (permalink / raw)
  To: rjw; +Cc: linux-acpi, linux-kernel, srivatsa.bhat, isimatu.yasuaki,
	Toshi Kani

CPU system maps are protected with reader/writer locks.  The reader
lock, put_online_cpus(), assures that the maps are not updated while
holding the lock.  The writer lock, cpu_hotplug_begin(), is used to
udpate the cpu maps along with cpu_maps_update_begin().

However, the ACPI processor handler updates the cpu maps without
holding the the writer lock.  This patchset fixes this problem.

---
The patchset is based on linux-next of the pm tree.

---
Toshi Kani (2):
 CPU hotplug: Export cpu_hotplug_begin() interface
 ACPI: Acquire writer lock to update cpu maps

---
 drivers/acpi/acpi_processor.c | 21 ++++++++++++++++-----
 include/linux/cpu.h           |  2 ++
 kernel/cpu.c                  |  4 ++--
 3 files changed, 20 insertions(+), 7 deletions(-)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-08-13 14:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12 15:45 [PATCH 0/2] Protect cpu map updates from ACPI processor Toshi Kani
2013-08-12 15:45 ` [PATCH 1/2] CPU hotplug: Export cpu_hotplug_begin() interface Toshi Kani
2013-08-12 15:45 ` [PATCH 2/2] ACPI: Acquire writer lock to update cpu maps Toshi Kani
2013-08-13  0:43 ` [PATCH 0/2] Protect cpu map updates from ACPI processor Rafael J. Wysocki
2013-08-13  0:55   ` Toshi Kani
2013-08-13 11:47     ` Rafael J. Wysocki
2013-08-13 14:52       ` Toshi Kani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox