From patchwork Thu Oct 19 10:43:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 13428633 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 62399CDB465 for ; Thu, 19 Oct 2023 10:44:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A3FEE8D019A; Thu, 19 Oct 2023 06:44:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9F0FD8D0199; Thu, 19 Oct 2023 06:44:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8B7E08D019A; Thu, 19 Oct 2023 06:44:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 78DEA8D0199 for ; Thu, 19 Oct 2023 06:44:50 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 38C3912062D for ; Thu, 19 Oct 2023 10:44:50 +0000 (UTC) X-FDA: 81361877940.30.DC034F3 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by imf02.hostedemail.com (Postfix) with ESMTP id 506B880005 for ; Thu, 19 Oct 2023 10:44:47 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=lQ4qVpy5; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf02.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.50 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697712288; 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=64H3QN+A9R2sRr7RGdVxi+oXdXHxQ2lNCm595aF0dp8=; b=ZZGoCEIcV0zyQVl9Oq/6PqtfYtzE4rJfX+CoikP+1kJFaWYlSHeEoHYHb4kYPYkFlnhItv giXF+rE5PhVkoM0mRj9wgRDP1+t6RP/PcjtUZDBB8bmlu4ELMKKz6H7JJjgb/ksgY0OKVH 5gbl/hy6fUdFUuSOZ6mQzM545DvXLVc= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=lQ4qVpy5; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf02.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.50 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697712288; a=rsa-sha256; cv=none; b=hKAij9Cy8nNmoYH5JkBlDYBDiJ/Sdfh2OqSgYg3RWzhbPpcHzpr9dXR12KrP1tkFhsuy7Z msw4z0PKDJiiXrlpOfpmzcoqi0bA0YDajnttaMpyt4qH/TC5riHiyO9/iXu0ugqo6/nrSK 8IwsR6cGyWTaHTaPO4HuscFI14dpLHM= Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-6bf106fb6a0so1448199a34.0 for ; Thu, 19 Oct 2023 03:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1697712286; x=1698317086; 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=64H3QN+A9R2sRr7RGdVxi+oXdXHxQ2lNCm595aF0dp8=; b=lQ4qVpy5JCeU+ZO5Jl85OWL+M8Plnn6ZrKDH1CFGRro/GZ3nS4gAp9H2W+YHnjcJ7f 5UwIi5F9Ta68xLPfeIp9agdM/EaC/GE/jzPtqZAhBljdk303bVq0UVOjXUO94oCT9Y9r lAdEuyREx9fMxjJ2S30uC0TDvJ/0GOT2zKxwm23wzWCvKJxgnYNHLrGXiIxdgmwl4sq5 b4S5Nssa0/jkVIERptH1tB/3fAfvkBCjuhtlFUUeXyoly9Qe+fvEsPT10IZpGCM+iNGt lP4D1MigdIM3U0el3IyVKqY3P5L4MSeWVVY5MZGtwTJnRhTLf+QsKkh0OijyVacZyV+b SwOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697712286; x=1698317086; 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=64H3QN+A9R2sRr7RGdVxi+oXdXHxQ2lNCm595aF0dp8=; b=XXa/m0VPk66pJAdGH540NqU1t+GLXcovgUXqDoMWYgmtEZW20z7CtN0mlgD3qpapQY mqrwicIXR7wdHRD2BWodzj3yaxn88IeZlv4qgi2TyMoqt4gpSMPsDx9fkVYlF5bCowVP jmy+DVo2dTH89FEqwVjlS+12lSMTTDn829y5NR03twEtNENlctI/DYv2ZloH4ky3FYl7 +PZpKEJvwwlRrPTgj88wWlglnG1L7UX8xLz6OeLvSNznoWbbOarKDnuZA0DisvX4LUmG o8NjHZLOCf8y5YtxEivZiHvDTixWgLV4lygMk1FduE2lWP0PxBQFYlyDnGxHLrB/2yNZ CsuQ== X-Gm-Message-State: AOJu0YynHYT/mq94XTiRltj265YrwduIq4uOUFd3yCJRku9WnQxkxfOJ BolrlOKoRx3DCa0ZTgczaWAd8A== X-Google-Smtp-Source: AGHT+IGmQ7tp2g0PgPG6tIdPzqmqZ06XuIisgKjjciqf3+wmU3m2x81u9ZMFkpX3YsvzD2U8HH42GA== X-Received: by 2002:a9d:7c89:0:b0:6bf:5010:9d35 with SMTP id q9-20020a9d7c89000000b006bf50109d35mr2051996otn.3.1697712286148; Thu, 19 Oct 2023 03:44:46 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([203.208.167.147]) by smtp.gmail.com with ESMTPSA id y13-20020aa79e0d000000b006bdfb718e17sm4812290pfq.124.2023.10.19.03.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 03:44:45 -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 v3 0/2] handle memoryless nodes more appropriately Date: Thu, 19 Oct 2023 18:43:53 +0800 Message-Id: X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 506B880005 X-Stat-Signature: de3r56hgpntwme8ncb66hq3fgjgduy8e X-HE-Tag: 1697712287-456722 X-HE-Meta: U2FsdGVkX183AsNBzNYHE4KCKrd8wRDkBWZAALD2bssru9ju6ugaPMlM4RW2zdUSwta6VlCmwHlXZHqK/xXs107xAsT4wlkKKyIaIWDZDZYLjaF3rSJJ7H2WDWv+sYdkDb8Fld4G3WcrQ69Jgg6lBV8DHSKEVSVIoHHh9fOcxIo3donZYf7ONQa6aJyD/QSULi+YhmzE3XEvrzBcXk1dXU7Cu5Ffbk6jxcKn4JXj+xhCTse8jDhV9wQX9Fx5rRdtAAl2td8hcNxZz19/L33jpfnX8t2TKesE8avXRy3yPZP3Cx58ag5kdqHTvaaksfOdYQ9Flsn3WN5E78Jn4xcX+GCdehClaQxyXvr7gpTLu50u4EWy4Yd1FFD71cpbJtSyZVWyBa4JDlKyTNaRBeLtkEszwS5viLKReqxzJ+WPvms08rv8EyGj3+CI/78DyHpPn8LD08neafMyUelK5IpZ4S/Rref3/DCLUl4XkpS5LCUWI1CKvuAkgN4jqTj1V3rrVFBvlN1vGCVZ2QgJq9jdR7UhgnuUfppfDe35Y+OngPapP4kkWfEoL0QUkxWfyDYMaEjEGNqzKx+rJ0pr1J5SmItmYmQhdWxfOTbtghRLQ91GWyOtqJbahBa84BWE1DzctO2mQ7nJl5UZP1vyWoqZLhNpuqRtzQEW+AFBxC/Zm/RglT22YQgQTQ1Pj2HubrVdqVg+h+hO1/UpYIWbuz3xm4vymFUSCBwEXGDEoiBvLFQuWw8x/4T89FtJo9Z4awtf3k6CE3VuQNdIPHzQ7j8hQabZEm8ubSCK3xES15PcDjP2WLdh4V7wCmGgyaD2s/XFHbYe6HUNlJTzoCKJTiq2Jp3I0RGJthShpPsO3QNFjeKbHfE1iIc4sMWH/mQdPM2Z8f+m7Ilm2llXkJX7Cr3Ap2c4Aj8lqUgXuWJczf4iA2JKkiTBIX2CfP1LpHfalw2LY5GJEgIgLf0yWWS2O8c VakR8sYW diEFG+LH2zLtTrg9b/UGZ1l6UaTG9UD9d2iQYPzvb+EMxBxY3+RIwehG3a3wdc4sTIy9rPSox12uWaIrRWnaOEQ2y+vG1IXQnQTfL2+bulfdxrnvldG+b+JFfE3cymzkg1ZOOkodG0aOjvv8bmKIch5xjGFx7ubgpFtP/VBoXF38owc/YT6Kkupfuc7IlpnC9j2LxWTyXZsZ2p81T33ZOed3Rdp+dtEhCjPT731MWMR+6kP0KdrbRu80KOUnQMZg56ZceOFd4DNdrC91UTh4KrOIWU+WrErzOO6YyHbnGLBfwzV6iqU53Dy7MFSpqb3jQBXXuKxb4Mphcfl6XXERd04GqvG0X74qRa0yW X-Bogosity: Ham, tests=bogofilter, spamicity=0.000017, 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 v2 -> v3: - add a comment in [PATCH v2 2/2] (suggested by David Hildenbrand) - collect Acked-bys 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) - rebase onto the next-20231018 Qi Zheng (2): mm: page_alloc: skip memoryless nodes entirely mm: memory_hotplug: drop memoryless node from fallback lists mm/memory_hotplug.c | 6 +++++- mm/page_alloc.c | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-)