The patch titled memory hotadd fixes: avoid registering res twice has been added to the -mm tree. Its filename is memory-hotadd-fixes-avoid-registering-res-twice.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: memory hotadd fixes: avoid registering res twice From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> both of acpi_memory_enable_device() and acpi_memory_add_device() may evaluate _CRS method. We should avoid evaluate device's resource twice if we could get it successfully in past. Signed-off-by: KAMEZWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Keith Mannthey <kmannth@xxxxxxxxx> Cc: Yasunori Goto <y-goto@xxxxxxxxxxxxxx> Cc: Dave Hansen <haveblue@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/acpi/acpi_memhotplug.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN drivers/acpi/acpi_memhotplug.c~memory-hotadd-fixes-avoid-registering-res-twice drivers/acpi/acpi_memhotplug.c --- a/drivers/acpi/acpi_memhotplug.c~memory-hotadd-fixes-avoid-registering-res-twice +++ a/drivers/acpi/acpi_memhotplug.c @@ -129,11 +129,15 @@ acpi_memory_get_device_resources(struct struct acpi_memory_info *info, *n; + if (!list_empty(&mem_device->res_list)) + return 0; + status = acpi_walk_resources(mem_device->device->handle, METHOD_NAME__CRS, acpi_memory_get_resource, mem_device); if (ACPI_FAILURE(status)) { list_for_each_entry_safe(info, n, &mem_device->res_list, list) kfree(info); + INIT_LIST_HEAD(&mem_device->res_list); return -EINVAL; } _ Patches currently in -mm which might be from kamezawa.hiroyu@xxxxxxxxxxxxxx are memory-hotadd-fixes-not-aligned-memory-hotadd.patch memory-hotadd-fixes-change-find_next_system_rams.patch memory-hotadd-fixes-find_next_system_ram-catch-range.patch memory-hotadd-fixes-avoid-check-in-acpi.patch memory-hotadd-fixes-avoid-registering-res-twice.patch namespaces-utsname-sysctl-hack.patch reiser4-hardirq-include-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html