Skip to content

Do not touch pages in hot-remove path

Oscar Salvador linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 20 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm, memory_hotplug: Add nid parameter to arch_remove_memoryarch/ia64/mm/init.c arch/powerpc/mm/mem.c arch/s390/mm/init.c +6 more+15 -100 replies
2/5kernel, resource: Check for IORESOURCE_SYSRAM in release_mem_region_adjustablekernel/resource.c+15 -00 replies
3/5mm, memory_hotplug: Move zone/pages handling to offline stagearch/powerpc/mm/mem.c arch/sh/mm/init.c arch/x86/mm/init_32.c +5 more+76 -713 replies
4/5mm, memory-hotplug: Rework unregister_mem_sect_under_nodesdrivers/base/memory.c drivers/base/node.c include/linux/memory.h +2 more+16 -454 replies
5/5mm, memory_hotplug: Refactor shrink_zone/pgdat_spanmm/memory_hotplug.c+64 -9913 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandPavel TatashinJonathan Cameron
1/5R-b R-b
2/5R-b R-b
3/5
4/5T-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] Do not touch pages in hot-remove path

From: Oscar Salvador <[email protected]>

This patchset is based on Dan's HMM/devm refactorization [1].

----

This patchset aims for two things:

1) A better definition about offline and hot-remove stage
2) Solving bugs where we can access non-initialized pages during hot-remove operations [2] [3].

This is achieved by moving all page/zone handling to the offline stage, so we do not need to access pages when hot-removing memory.

[1] https://patchwork.kernel.org/cover/10691415/
[2] https://patchwork.kernel.org/patch/10547445/
[3] https://www.spinics.net/lists/linux-mm/msg161316.html

Oscar Salvador (5):
mm, memory_hotplug: Add nid parameter to arch_remove_memory kernel, resource: Check for IORESOURCE_SYSRAM in
release_mem_region_adjustable
mm, memory_hotplug: Move zone/pages handling to offline stage mm, memory-hotplug: Rework unregister_mem_sect_under_nodes mm, memory_hotplug: Refactor shrink_zone/pgdat_span

 arch/ia64/mm/init.c            |   2 +-
 arch/powerpc/mm/mem.c          |  14 +--
 arch/s390/mm/init.c            |   2 +-
 arch/sh/mm/init.c              |   6 +-
 arch/x86/mm/init_32.c          |   5 +-
 arch/x86/mm/init_64.c          |  11 +-
 drivers/base/memory.c          |   9 +-
 drivers/base/node.c            |  39 +------
 include/linux/memory.h         |   2 +-
 include/linux/memory_hotplug.h |  12 +-
 include/linux/node.h           |   9 +-
 kernel/memremap.c              |  19 ++-
 kernel/resource.c              |  15 +++
 mm/memory_hotplug.c            | 254 +++++++++++++++++++----------------------
 mm/sparse.c                    |   4 +-
 15 files changed, 182 insertions(+), 221 deletions(-)
Signature · 1 line
2.13.6