From patchwork Thu Oct 19 07:36:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 13428410 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A942CDB482 for ; Thu, 19 Oct 2023 07:38:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C4D956B0126; Thu, 19 Oct 2023 03:38:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BFD3E6B0129; Thu, 19 Oct 2023 03:38:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AC3EE6B0128; Thu, 19 Oct 2023 03:38:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 971586B0125 for ; Thu, 19 Oct 2023 03:38:11 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 6C8CD1A11FA for ; Thu, 19 Oct 2023 07:38:11 +0000 (UTC) X-FDA: 81361407582.20.19F2EA8 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by imf13.hostedemail.com (Postfix) with ESMTP id 551B020014 for ; Thu, 19 Oct 2023 07:38:08 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b="MKfU/XOB"; spf=pass (imf13.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.175 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697701089; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=iODpyYFwO1oG91Rx1B6vPWC8Bb1guLsLCVeteiWdg7A=; b=wbHFvPT0dcKOds5ZXq2ODgi9CWtlyjlMqm/ZYMgLb0zA7/dPPggNrXZm3IKe3AfIVWTOeN GYq8JC1cgIl73A5Pj+O+BhgrQLjXqyCnvJSTBdRsWgMHy/Wc1XnLlS9xxTf+Xg1HF4sqkZ pHsf0azrY7S8zFry7qdmrjvFyDMGtJI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697701089; a=rsa-sha256; cv=none; b=AIXqP7fbEpz/IMSkVcL+eJuhCdgdohYyXK9O+T0SOZOytcnpyqFv6fJy3bPo2uQMqSXxBp mSeXQ2kMwvVUn5Hgxsls5rBIQNMuaF8QJqSrnk1Y4l4J9W3DKggd5Y7Z7wmcawRMY/+MXQ u82iDTKZw/krmWoHTt9JfJPZ8W7/hXg= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b="MKfU/XOB"; spf=pass (imf13.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.175 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1ca79b731f1so8971425ad.0 for ; Thu, 19 Oct 2023 00:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1697701087; x=1698305887; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iODpyYFwO1oG91Rx1B6vPWC8Bb1guLsLCVeteiWdg7A=; b=MKfU/XOBtGUxbROdTHqYsSlrl8GZuLhY7cFNk1E9HnVlcaEtJEL8B2wGVIsrTwmQRB RZyvJkni0P+stOEpwmzfYVkUQhD3F6CNKQe2Imy01sYMIdORwlmvyJCIN+VIrpCBNKnA QQ1Ql261WOlMXQfCMJxt49zRFNTsrmHpS8LXZprPvHzz7YXcvRFUzXzwuAMjEGX/Nbho dpn19i7JU1+2BDukoIzct9dmtykecd9/FPiozrdvF+PVGoTRvQfGUUmsAWZn7EL1Mo51 CqSMqEdKTQ/C5uZ+myuKNs/cLA6eV5n5Xe7MX9xV6rqv/4c4eRqAoh/0AMrC80l2dx5z DLYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697701087; x=1698305887; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iODpyYFwO1oG91Rx1B6vPWC8Bb1guLsLCVeteiWdg7A=; b=vAlwRlY1Spf8jCDasF/lVARI1CCxDXQWlYdFI2TsO+T/IHWqUk/KlRhoj1f6Z19EhS xhu+AzEoI1ANMzj5rDOiXVdRwjBVbIxhgRaA72GFNxD93OADj8Gs6i7D0Moh/KDgVhk+ TtmCffbuOECPQygRJmkRRBQhNM7CBTwCPsJsNm3BBL4Y80UXM9n9XqDr19Zty67RKq0G i/W7i2dtYgOwUUIWuQy00R8JaQ1t4xkze+Im1OwruHhaMsofQS6z5g9EybQzluyI5mBv DyiX9hlmBbhA3hTHUcmRDF4ey0o65LfH7ZldzLNLPr0SG3e+Ie1CuorPyYbMjHPRSZ+Q mtCg== X-Gm-Message-State: AOJu0Yxe4QnNp74kRqXVGeQv0nzWrNvnd7Hwtz2vVC5izv++YTKBnTVq jlPZp4Z2sCDLj2V/WCrItnCyzQ== X-Google-Smtp-Source: AGHT+IHZNAoQ3zC9/VR613FTSuua5KOYEG6nqeGd8HRAUu3Xc/1tRXUy4L00rOw0qIrji0VgcHL0qQ== X-Received: by 2002:a17:903:288f:b0:1b8:9fc4:2733 with SMTP id ku15-20020a170903288f00b001b89fc42733mr1533490plb.3.1697701086997; Thu, 19 Oct 2023 00:38:06 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([203.208.167.147]) by smtp.gmail.com with ESMTPSA id d9-20020a170902854900b001c5d09e9437sm1194306plo.25.2023.10.19.00.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 00:38:06 -0700 (PDT) From: Qi Zheng To: akpm@linux-foundation.org, rppt@kernel.org, david@redhat.com, vbabka@suse.cz, mhocko@suse.com Cc: willy@infradead.org, mgorman@techsingularity.net, mingo@kernel.org, aneesh.kumar@linux.ibm.com, ying.huang@intel.com, hannes@cmpxchg.org, osalvador@suse.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Qi Zheng Subject: [PATCH v2 0/2] handle memoryless nodes more appropriately Date: Thu, 19 Oct 2023 15:36:25 +0800 Message-Id: X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-Stat-Signature: g1xpt78fxh7i8ibqnsy8jorzw9xqsdrr X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 551B020014 X-Rspam-User: X-HE-Tag: 1697701088-172064 X-HE-Meta: U2FsdGVkX18sfU1qRu8oA0QAGqoMIEvWsDeWgynVpoli0lvI8NlbWUGuk5rxLQ7gMqAHKGSxz1BfdNlvsMPmPSuIF/+wCeiPymznUoUveQsbjMJkWItvhjKxtVdChIsqY+suBDGjabYYXJeRVxobOiFtiJZod4tj5Swg4JaspoplM4g4n906W1Wqy7U8bu8qdoHkWw/+a2ewFWQV5oP1FJVQNpcRhakP2tf7diWX/ha0spyM4njd8efHDZi10CBY8L5uyZM02CPDKyJ0X071otlZLkPEm7yTHPxxl/tXR5bJogoIGd/NxS1F4T8QIoq0J9pEKFj+QPdRX32HeKHPtwESKreKPc78upLsih7wW4ZgXg410zT2UyN5Uqie0atpYIhLoO6AqcTknaMsr8WobuShBLSMCUPWR1n07yHjvpvpUljgdCtuxNl8HIDP1Jl06uvfBzJ4GNDy48sug+BD/JBw5ZtMfWlEJH2aevgr44vUL3zhg7W1hYf9SzzHNYOEbI+bBeRQQb/9lzP0p+5r1+l5egikf6TSLIU62oNhPtyhdD6bmyDfGZ0pHREF+Tdavs7gk1DyKpYHzGY0DbHQJtS45A+xDiG9wX4Kje0v4FwKQi1OI1W/KDRoZ659Xy3T59P7FOLS6lFlYoFbb0Sa0p650qpO34Zi7sqCkYW9god375g6ndm6wJkoVqIPJkV4sfjzlH9HWLbb2AZOut4FlBDsp+1sSr+FUPgcjHznXYMbyeUljSP+e4npxd/rzaBGAM1xDDd8/a8L3qvdionePetDG3uLGIGut8HrLIk/BE7gaL/jRADIZB0NwB8Vzl5rYu0Ga4Dnp73CKPLcHyHMSNV1rdGepH1u7WOj+5175BkoNW2l1SUZiMpcB4WWD/S6Hggmsagk88r7yUHiucAPXy3QpbplWCxYwpJIbcLFPoO0o9oF+4G5YPP8+0oShsm7k6f6v/Hx0/MMj+K2WWI rKbB3ZRZ 5brklWe4hQlJG0gvhtnPZcuWN4hne/XoDjT9Kn+l3+xDdztt4Ksz0ja9rcRTnPsw+m/dEYheUnEMa885V1ug91ZPrKW3LK0u5Oh5brGrhb4wT1/+rbJSKNTEJzDzwKm0a8klicPnyvnO/nwbBBDKL8u51KJbmB+cMC0sghd6Y+Bgwfv26wIbPlZznZ92AQKFJRpFXyZd56MS66tFgP9x/WLkLKvlhXncDlolzjLJWJCPoludUI0VVHuCpfs6BY1aEjQc/LlXfKxwQ7oWyPKAPzhuO55/L0hiDwaoKTAg44dZZevOYbNRqIa4cSl5D8Ip+1uS/VDiyc4V6lIdbH01pLijhFd9imj6ewnjm X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi all, Currently, in the process of initialization or offline memory, memoryless nodes will still be built into the fallback list of itself or other nodes. This is not what we expected, so this patch series removes memoryless nodes from the fallback list entirely. This series is based on the next-20231018. Comments and suggestions are welcome. Thanks, Qi Changlog in v1 -> v2: - modify the commit message in [PATCH 1/2], mention that it can also fix the specific crash. (suggested by Ingo Molnar) Qi Zheng (2): mm: page_alloc: skip memoryless nodes entirely mm: memory_hotplug: drop memoryless node from fallback lists mm/memory_hotplug.c | 2 +- mm/page_alloc.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-)