On Thu, 2012-11-15 at 14:59 +0800, Wen Congyang wrote: > 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(). > > CC: David Rientjes <[email protected]> > CC: Jiang Liu <[email protected]> > CC: Len Brown <[email protected]> > CC: Benjamin Herrenschmidt <[email protected]> > CC: Paul Mackerras <[email protected]> > CC: Christoph Lameter <[email protected]> > Cc: Minchan Kim <[email protected]> > CC: Andrew Morton <[email protected]> > CC: KOSAKI Motohiro <[email protected]> > CC: Yasuaki Ishimatsu <[email protected]> > CC: Rafael J. Wysocki <[email protected]> > CC: Konrad Rzeszutek Wilk <[email protected]> > Signed-off-by: Wen Congyang <[email protected]>
Thanks for the update. It looks good. Reviewed-by: Toshi Kani <[email protected]> -Toshi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

