From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D19A327207 for ; Mon, 8 Dec 2025 14:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765204086; cv=none; b=QWajonovZX5pjcvlv5jCMiMH36lchZ6gCwoG3EUcvj/at5q/1qNGdcjEAB1vh5DkNx48bWNwhD1OFRdPZKcOxAX1UI0vbo/O8GNtRl7pAqJOkWPn0YnQPDVjxt6eQzDKowO8kXIEbZR9YX4xjMy/+zs9quEL7fCk5cm8x/eofa0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765204086; c=relaxed/simple; bh=YhkXeDpojjQAahTJ45sd2BTdvUz48R4h8dyVLpF3miI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CQZ4HgPg+T46UNvPO/DULZs2xpV3f68Z4LZLDv5oFnkfF4K3rjEBa/MPPAW/fgqu/dZM5Bv+s8eM3T+PE8vlBnO71GKUiZhqnQz0QQzWUZmNVTJ16Q+ieO+iecCw1J9Yj++m6MPK7lrwVK1LAoStjmU9Wi1pj1LI/6UVc4mwgfk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BzvgF0/M; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BzvgF0/M" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1765204085; x=1796740085; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YhkXeDpojjQAahTJ45sd2BTdvUz48R4h8dyVLpF3miI=; b=BzvgF0/MxXCl/FpaW1k1zVV5EOc7eK92srTnStpLHuAB5PqaThHeMO5N iRiNi+jHqYOrUSTMlawNYwkAFIRzBxt30tBDcCu8QVfPIq8IF+0sL/wGs RHu2bsvUUl9cw5qYfveTDHEqedsBUIveVQ1GNGXfEDY35A+7HYu8U0q5T 0GSH0x3tQjp0x4sgMDSfc2TzX5AMVRyslpI5h8+j1oefGkpHOdPjPqMnM Nh/o6lTwaHYxELeJUu9rN3HD5TjsptC/l7fyuji1V8p3qSVN3xyGJ9ro0 pwjy6mMyya1omdpKcqqazuc1FV7jKm8Zshj6YORuGTU4avodHUtT79/K7 g==; X-CSE-ConnectionGUID: wsaGW39xRR2vOTPEpkONxg== X-CSE-MsgGUID: FqYI/QdZRvu44oQOp13gAA== X-IronPort-AV: E=McAfee;i="6800,10657,11636"; a="67181501" X-IronPort-AV: E=Sophos;i="6.20,258,1758610800"; d="scan'208";a="67181501" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2025 06:28:03 -0800 X-CSE-ConnectionGUID: cfm4mnZZS2yc82iiiObh/w== X-CSE-MsgGUID: JbJY0ggMQoWerjpst00HaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,258,1758610800"; d="scan'208";a="233317783" Received: from linux-pnp-server-27.sh.intel.com ([10.239.147.41]) by orviesa001.jf.intel.com with ESMTP; 08 Dec 2025 06:28:00 -0800 From: Tianyou Li To: David Hildenbrand , Oscar Salvador , Mike Rapoport , Wei Yang Cc: linux-mm@kvack.org, Yong Hu , Nanhai Zou , Yuan Liu , Tim Chen , Qiuxu Zhuo , Yu C Chen , Pan Deng , Tianyou Li , Chen Zhang , linux-kernel@vger.kernel.org Subject: [PATCH v5 0/2] Optimize zone->contiguous update and issue fix Date: Mon, 8 Dec 2025 23:25:42 +0800 Message-ID: <20251208152544.1150732-1-tianyou.li@intel.com> X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series contains 2 patches, the first one add a fast path to check the zone->contiguous, the second one fix an issue when check the zone->contiguous at the slow path during zone grows. The issue fixed by the second patch can be found in the original code path without the first patch. Tianyou Li (1): mm/memory hotplug/unplug: Optimize zone->contiguous update when changes pfn range Yuan Liu (1): mm/memory hotplug: fix zone->contiguous always false when hotplug mm/internal.h | 8 +++++- mm/memory_hotplug.c | 70 +++++++++++++++++++++++++++++++++++++++++++-- mm/mm_init.c | 13 +++++++-- 3 files changed, 85 insertions(+), 6 deletions(-) -- 2.47.1