diff options
| author | Wen Congyang <[email protected]> | 2012-11-16 02:04:05 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2012-11-16 02:04:05 +0100 |
| commit | 315bbae9c5cb1f54a6d6fd47b9cf325fbedccf05 (patch) | |
| tree | de389b3d001e6418d414a96704510cfc6b3cadf8 /net/lapb | |
| parent | 19387b27e42d5e20a8188cfa15dc902114d98c43 (diff) | |
ACPI / memhotplug: deal with eject request in hotplug queue
The memory device can be removed by 2 ways:
1. send eject request by SCI
2. echo 1 >/sys/bus/pci/devices/PNP0C80:XX/eject
We handle the 1st case in the module acpi_memhotplug, and handle
the 2nd case in ACPI eject notification. This 2 events may happen
at the same time, so we may touch acpi_memory_device.res_list at
the same time. This patch reimplements memory-hotremove support
through an ACPI eject notification. Now the memory device is
offlined and hotremoved only in the function acpi_memory_device_remove()
which is protected by device_lock().
Signed-off-by: Wen Congyang <[email protected]>
Reviewed-by: Yasuaki Ishimatsu <[email protected]>
Reviewed-by: Toshi Kani <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions