mm/internal.h | 8 ++++- mm/memory_hotplug.c | 75 +++++++++++++++++++++++++++++++++++++++++++-- mm/mm_init.c | 12 ++++++-- 3 files changed, 89 insertions(+), 6 deletions(-)
This series contains 2 patches, the first one fix an issue when check
the zone->contiguous during zone grows, the second one add a fast path
to check the zone->contiguous. The issue fixed by the first patch can
be found in the original code path without the second patch.
Yuan Liu (1):
mm/memory hotplug: fix zone->contiguous always false when hotplug
Tianyou Li (1):
mm/memory hotplug/unplug: Optimize zone->contiguous update when
changes pfn range
Changes History
===============
v2 changes:
Add check_zone_contiguous_fast function to check zone contiguity for
new memory PFN ranges.
v3 changes:
Add zone contiguity check for empty zones.
v4 changes:
1. Improve coding style.
2. Add fast path for zone contiguity check in memory unplugged cases,
and update test results.
3. Refactor set_zone_contiguous: the new set_zone_contiguous updates
zone contiguity based on the fast path results.
v5 changes:
1. Improve coding style.
2. Fix a issue in which zone->contiguous was always false when adding
new memory, leveraging the fast path optimization.
v6 changes:
1. Improve coding style.
2. Add comments.
v7 changes:
1. Rebased to 6.19-rc1
2. Reorder the patches so that the fix will be the first in the series.
Tianyou Li (2):
mm/memory hotplug: fix zone->contiguous always false when hotplug
mm/memory hotplug/unplug: Optimize zone->contiguous update when
changes pfn range
mm/internal.h | 8 ++++-
mm/memory_hotplug.c | 75 +++++++++++++++++++++++++++++++++++++++++++--
mm/mm_init.c | 12 ++++++--
3 files changed, 89 insertions(+), 6 deletions(-)
--
2.47.1
Happy New Year! Appreciated for your review and looking forward for the comments. Thanks. Regards, Tianyou On 12/22/2025 10:58 PM, Tianyou Li wrote: > This series contains 2 patches, the first one fix an issue when check > the zone->contiguous during zone grows, the second one add a fast path > to check the zone->contiguous. The issue fixed by the first patch can > be found in the original code path without the second patch. > > Yuan Liu (1): > mm/memory hotplug: fix zone->contiguous always false when hotplug > > Tianyou Li (1): > mm/memory hotplug/unplug: Optimize zone->contiguous update when > changes pfn range > > > Changes History > =============== > v2 changes: > Add check_zone_contiguous_fast function to check zone contiguity for > new memory PFN ranges. > > v3 changes: > Add zone contiguity check for empty zones. > > v4 changes: > 1. Improve coding style. > 2. Add fast path for zone contiguity check in memory unplugged cases, > and update test results. > 3. Refactor set_zone_contiguous: the new set_zone_contiguous updates > zone contiguity based on the fast path results. > > v5 changes: > 1. Improve coding style. > 2. Fix a issue in which zone->contiguous was always false when adding > new memory, leveraging the fast path optimization. > > v6 changes: > 1. Improve coding style. > 2. Add comments. > > v7 changes: > 1. Rebased to 6.19-rc1 > 2. Reorder the patches so that the fix will be the first in the series. > > Tianyou Li (2): > mm/memory hotplug: fix zone->contiguous always false when hotplug > mm/memory hotplug/unplug: Optimize zone->contiguous update when > changes pfn range > > mm/internal.h | 8 ++++- > mm/memory_hotplug.c | 75 +++++++++++++++++++++++++++++++++++++++++++-- > mm/mm_init.c | 12 ++++++-- > 3 files changed, 89 insertions(+), 6 deletions(-) >
On 1/5/26 13:21, Li, Tianyou wrote: > Happy New Year! Happy New Year to you too! > > Appreciated for your review and looking forward for the comments. Thanks. Sorry, I missed this version (and the previous one) as there was a problem with me noticing mails sent to my old @redhat mail account in my @kernel account. Will take a look soon! -- Cheers David
Thanks David. My mistake to use wrong email address. Very appreciated for your review. Regards, Tianyou -----Original Message----- From: David Hildenbrand (Red Hat) <david@kernel.org> Sent: Tuesday, January 6, 2026 12:28 AM To: Li, Tianyou <tianyou.li@intel.com>; Oscar Salvador <osalvador@suse.de>; Mike Rapoport <rppt@kernel.org>; Wei Yang <richard.weiyang@gmail.com> Cc: linux-mm@kvack.org; Hu, Yong <yong.hu@intel.com>; Zou, Nanhai <nanhai.zou@intel.com>; Liu, Yuan1 <yuan1.liu@intel.com>; Tim Chen <tim.c.chen@linux.intel.com>; Zhuo, Qiuxu <qiuxu.zhuo@intel.com>; Chen, Yu C <yu.c.chen@intel.com>; Deng, Pan <pan.deng@intel.com>; Chen Zhang <zhangchen.kidd@jd.com>; linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 0/2] Optimize zone->contiguous update and issue fix On 1/5/26 13:21, Li, Tianyou wrote: > Happy New Year! Happy New Year to you too! > > Appreciated for your review and looking forward for the comments. Thanks. Sorry, I missed this version (and the previous one) as there was a problem with me noticing mails sent to my old @redhat mail account in my @kernel account. Will take a look soon! -- Cheers David
© 2016 - 2026 Red Hat, Inc.