Fixes for sub-section hotplug
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v12 patches 12 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm,sparse: Fix deactivate_section for early sectionsmm/ | +3 | 0 replies | |
| 2/2 | mm,memory_hotplug: Fix shrink_{zone,node}_spanmm/ | +4 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Aneesh Kumar K.V | Dan Williams |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] Fixes for sub-section hotplug
v2 -> v1: Go the easy way and just adapt the check (Dan/Aneesh)
Hi all,
these two patches address a couple of issues I found while working on my vmemmap-patchset.
The issues are:
1) section_deactivate mistakenly zeroes ms->section_mem_map and then tries to check whether the section is an early section, but since section_mem_map might have been zeroed, we will return false when it is really an early section.
In order to fix this, let us check whether the section is early at function entry, so we do not neet check it again later.
2) shrink_{node,zone}_span work on sub-section granularity now. The problem is that since deactivation of the section occurs later on in sparse_remove_section, so the pfn_valid()->pfn_section_valid() check will always return true for every sub-section chunk. In order to avoid that, let us adapt the check and skip the whole range to be removed.
The user visible effect of this is that we are always left with, at least, PAGES_PER_SECTION spanned, even if we got to remove all memory linked to a zone/node
Oscar Salvador (2):
mm,sparse: Fix deactivate_section for early sections mm,memory_hotplug: Fix shrink_{zone,node}_span
mm/memory_hotplug.c | 8 ++++---- mm/sparse.c | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-)
Signature · 1 line
2.12.3