linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ACPI: container hot remove support.
@ 2012-10-24  6:05 Tang Chen
  2012-10-24  6:05 ` [PATCH v2 1/2] Use kacpi_hotplug_wq to handle container hotplug event Tang Chen
  2012-10-24  6:05 ` [PATCH v2 2/2] Improve container_notify_cb() to support container hot-remove Tang Chen
  0 siblings, 2 replies; 15+ messages in thread
From: Tang Chen @ 2012-10-24  6:05 UTC (permalink / raw)
  To: yinghai, bhelgaas, lenb, jiang.liu, izumi.taku, isimatu.yasuaki,
	mihailm, linux-acpi, linux-pci, linux-kernel

Hi,

The container hotplug handler container_notify_cb() didn't implement
the hot-remove functionality. So, these 2 patches implement it like
the following way:

patch 1. Do not use kacpid_wq/kacpid_notify_wq to handle container hotplug event,
         use kacpi_hotplug_wq instead to avoid deadlock.
         Doing this is to reuse acpi_bus_hot_remove_device() in container
         hot-remove handling.

patch 2. Introduce a new function container_device_remove() to handle
         ACPI_NOTIFY_EJECT_REQUEST event for container.


change log v1 -> v2:

1. In patch1: Based on the lastest for-pci-split-pci-root-hp-2 branch from Lu Yinghai, 
   use alloc_acpi_hp_work() to add container hotplug work into kacpi_hotplug_wq.

2. In patch2: Allocate ej_event after container is stopped, so that we don't need to
   kfree the ej_event if stopping container failed.


This is based on Lu Yinghai's job.
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci-split-pci-root-hp-2

Tang Chen (2):
  Use kacpi_hotplug_wq to handle container hotplug event.
  Improve container_notify_cb() to support container hot-remove.

 drivers/acpi/container.c |   75 +++++++++++++++++++++++++++++++++++++++------
 1 files changed, 65 insertions(+), 10 deletions(-)


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

end of thread, other threads:[~2012-10-26 20:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24  6:05 [PATCH v2 0/2] ACPI: container hot remove support Tang Chen
2012-10-24  6:05 ` [PATCH v2 1/2] Use kacpi_hotplug_wq to handle container hotplug event Tang Chen
2012-10-24  6:54   ` Yasuaki Ishimatsu
2012-10-24  7:24     ` Tang Chen
2012-10-24  8:09       ` Yasuaki Ishimatsu
2012-10-24  7:42     ` Tang Chen
2012-10-24  6:05 ` [PATCH v2 2/2] Improve container_notify_cb() to support container hot-remove Tang Chen
2012-10-24 17:14   ` Toshi Kani
2012-10-24 18:02     ` Bjorn Helgaas
2012-10-25  0:53       ` Jiang Liu
2012-10-25  1:31     ` Tang Chen
2012-10-25  1:47       ` Jiang Liu
2012-10-25 17:20         ` Toshi Kani
2012-10-26  5:43           ` Tang Chen
2012-10-26 20:02             ` Toshi Kani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).