Message ID | 20231018140806.2783514-14-wangkefeng.wang@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 8010CCDB47E for <linux-mm@archiver.kernel.org>; Wed, 18 Oct 2023 14:09:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C1D0B6B0203; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ABE7980017; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 847676B0205; Wed, 18 Oct 2023 10:09:29 -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 7115480016 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4BE87B57AF for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:09:29 +0000 (UTC) X-FDA: 81358764858.20.D79CFAC Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf16.hostedemail.com (Postfix) with ESMTP id 01AA618001E for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:09:25 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf16.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697638167; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RlBbZypv6yE/hTj8++hHCKN5K1x2FYqLwI5an1ekiHg=; b=RI5K0m/kOtT69DZetblsgFIQIm7ZU/9iNagjK3XblqciQzGesqeTEXKcuq9CCF7mwScpks 7+Y6Tj/WwSvDAHv60iYqbbd+RIUw79nKDy3R9SAOTx7O5e5CXCnyDkV25yBqs9mePcQLa8 I2AYN1Ean60S7Shy00Yvdkk/oPqm+c4= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf16.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697638167; a=rsa-sha256; cv=none; b=2EbdKC8acAi2B9UaYHOYSE1BrW31voJnBt9EwS2f3lpoF7MRSfJ7zr+Z2b0eEi//oe6Djm UFcm3CFN45urqo6ZlfDuloHObXrw4+OFGw0/hIzkLrasTB3TOZBJPoCdf1y2W+fpgohGL+ ScdUpBzCjD6xfMfyZO+aAvu0I0GVbEQ= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4S9Xfq5SM4zCrSG; Wed, 18 Oct 2023 22:05:07 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Wed, 18 Oct 2023 22:09:06 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: <willy@infradead.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <ying.huang@intel.com>, <david@redhat.com>, Zi Yan <ziy@nvidia.com>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH v3 13/19] sched/fair: use folio_xchg_last_cpupid() in should_numa_migrate_memory() Date: Wed, 18 Oct 2023 22:08:00 +0800 Message-ID: <20231018140806.2783514-14-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231018140806.2783514-1-wangkefeng.wang@huawei.com> References: <20231018140806.2783514-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 01AA618001E X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: pmdrp85x8i39snmbtm6zsnmpy5d5sumb X-HE-Tag: 1697638165-848734 X-HE-Meta: U2FsdGVkX1/+JjFckpIzjcK+iOZBY6byWJJhKxNhXO71hZTOG/90TFFMPyF9Z7KpoVgP3s7sruGz6PsdYJE/d5v1QUFJT8XaMkDf/LZ58l/uoIvalyWn7B/Gs4VxREiWovSWhfdLHJ3kvzsJWbPrWCF0k3MqlIKTt2msWDc63jdmSKy0w3mEvxjMkcIgORVdD4XiHn6V/bF5wwqOGgrgaPr3RyTvLKEOhkbIvtINU21nMSgFu7hdQbpiNQjN4WamHNW6MWRrkXctOjsnP2VcsdBy8HeP3uxzk/5cPcMntD9yDMtQr4eakd9/I7kug+jCKs4wllurc+uOlcQWBN4eHg9gP01rATnvSKC/sTpyDG2v7q5YwZQt9ZL+EzYuPjkBd3eOp5g+3o+PqJIbG4Ee+c8+y8v44AXPjnN8aw5r1spyKlS0dT9XPqeY3x41FxUlWvktHEPMcKlobKSDCf9Z3G+qkLmyc1IMnG7dkfwBOypBxNzF/kqCt8e0wviTaqef1kDabT88zUEnTReimKksHblXDa9K0c9QfAk0b6ESyVOVyk2PVlcriRmd2dxac2/ITGCl1PQxnzhbN+fEOblD+738J/vfHVs31PDb1RiDBNXLczcDwj8iyptsDJVPzVcE3U8tm/n63u9qa/dZRgnWvp5pp7aQzGUQgEJpkS8u6G/hrpwkrUkG7MVmebGWWTUwY556+A9abu7iFdvEkZ5UuaHOkq+hl1i1CKVWAXmEifHtywCokflqBn3s7H4S+6Z1XP6tTZnixyRdEsixF/507IWUYCQ+f4KcFxKicZ0iC7/BMIEEzzdiFsT2VL+aPwcvQaZx+8/10oE7iUwCXQtgYMB1NoY6/6xJm4tmi1o7JUKdzoVbBU+toPG/4IlhNNETN/bpGI3POBEklBR+VBTClo83xs3q/iwcDtMwu0RBi2YVBHL9Fx5NxJFEHnYk+Dax8l1Y+yQut73Yai6z82I 6BQwiety dTICLM82L9XHKgJ2wNIdLvVhw6+fP+cz6AA+drtx3/lgkZR743j7n1RkTOwvWsX9LrojaF2WIdOLtdtFCsn7QKSC1gNF8na99r6fok9zOdV0cUKzEqUyHjUrERnP+DrkYdaJRoZ6R06CzBh9SlR/2HufvX5GjJ6O1Jbr9DDwHMIXL3EudrN21dv+Z5Wicrw95L0EZ 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: <linux-mm.kvack.org> |
Series |
mm: convert page cpupid functions to folios
|
expand
|
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index b8c52893b3d9..bafac84f7be9 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1862,7 +1862,7 @@ bool should_numa_migrate_memory(struct task_struct *p, struct folio *folio, } this_cpupid = cpu_pid_to_cpupid(dst_cpu, current->pid); - last_cpupid = page_cpupid_xchg_last(&folio->page, this_cpupid); + last_cpupid = folio_xchg_last_cpupid(folio, this_cpupid); if (!(sysctl_numa_balancing_mode & NUMA_BALANCING_MEMORY_TIERING) && !node_is_toptier(src_nid) && !cpupid_valid(last_cpupid))
Convert to use folio_xchg_last_cpupid() in should_numa_migrate_memory(). Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)