Skip to content

some fixes about acpi_memhotplug

Wen Congyang linux-acpi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyIn review
  2. v18 patches 12 repliesSuperseded

Changes in v2 from the cover letter

1. address David Rientjes and Konrad Rzeszutek Wilk's comment

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7fix memory leak when memory device is unbound from the module acpi_memhotplugdrivers/acpi/acpi_memhotplug.c+21 -101 reply
2/7free memory device if acpi_memory_enable_device() faileddrivers/acpi/acpi_memhotplug.c+3 -10 replies
3/7remove memory info from list before freeing itdrivers/acpi/acpi_memhotplug.c+1 -00 replies
4/7don't allow to eject the memory device if it is being useddrivers/acpi/acpi_memhotplug.c+31 -70 replies
5/7bind the memory device when the driver is being loadeddrivers/acpi/acpi_memhotplug.c+0 -120 replies
6/7auto bind the memory device which is hotpluged before the driver is loadeddrivers/acpi/acpi_memhotplug.c+36 -10 replies
7/7release memory resources if hotadd_new_pgdat() failedmm/memory_hotplug.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/7 v2] some fixes about acpi_memhotplug

Changes from v1 to v2:
1. address David Rientjes and Konrad Rzeszutek Wilk's comment

Note:
Patch 2, 3, 7 have been acked by David Rientjes.

Wen Congyang (7):
fix memory leak when memory device is unbound from the module
acpi_memhotplug
free memory device if acpi_memory_enable_device() failed remove memory info from list before freeing it
don't allow to eject the memory device if it is being used bind the memory device when the driver is being loaded auto bind the memory device which is hotpluged before the driver is
loaded
release memory resources if hotadd_new_pgdat() failed

 drivers/acpi/acpi_memhotplug.c |  123 ++++++++++++++++++++++++++++++----------
 mm/memory_hotplug.c            |    2 +-
 2 files changed, 93 insertions(+), 32 deletions(-)