From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH v3] mm/vmscan: fix demotion targets checks in reclaim/demotion
Date: Sun, 28 Dec 2025 03:22:01 +0800 [thread overview]
Message-ID: <202512280348.PQDhLdXM-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20251223212032.665731-1-bingjiao@google.com>
References: <20251223212032.665731-1-bingjiao@google.com>
TO: Bing Jiao <bingjiao@google.com>
TO: linux-mm@kvack.org
CC: linux-kernel@vger.kernel.org
CC: akpm@linux-foundation.org
CC: gourry@gourry.net
CC: longman@redhat.com
CC: hannes@cmpxchg.org
CC: mhocko@kernel.org
CC: roman.gushchin@linux.dev
CC: shakeel.butt@linux.dev
CC: muchun.song@linux.dev
CC: tj@kernel.org
CC: mkoutny@suse.com
CC: david@kernel.org
CC: zhengqi.arch@bytedance.com
CC: lorenzo.stoakes@oracle.com
CC: axelrasmussen@google.com
CC: chenridong@huaweicloud.com
CC: yuanchu@google.com
CC: weixugc@google.com
CC: cgroups@vger.kernel.org
Hi Bing,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Bing-Jiao/mm-vmscan-fix-demotion-targets-checks-in-reclaim-demotion/20251224-052216
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20251223212032.665731-1-bingjiao%40google.com
patch subject: [PATCH v3] mm/vmscan: fix demotion targets checks in reclaim/demotion
:::::: branch date: 4 days ago
:::::: commit date: 4 days ago
config: arm-randconfig-r071-20251224 (https://download.01.org/0day-ci/archive/20251228/202512280348.PQDhLdXM-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202512280348.PQDhLdXM-lkp@intel.com/
smatch warnings:
mm/vmscan.c:1075 demote_folio_list() error: uninitialized symbol 'nr_succeeded'.
vim +/nr_succeeded +1075 mm/vmscan.c
26aa2d199d6f2c Dave Hansen 2021-09-02 1032
26aa2d199d6f2c Dave Hansen 2021-09-02 1033 /*
49fd9b6df54e61 Matthew Wilcox (Oracle 2022-09-02 1034) * Take folios on @demote_folios and attempt to demote them to another node.
49fd9b6df54e61 Matthew Wilcox (Oracle 2022-09-02 1035) * Folios which are not demoted are left on @demote_folios.
26aa2d199d6f2c Dave Hansen 2021-09-02 1036 */
49fd9b6df54e61 Matthew Wilcox (Oracle 2022-09-02 1037) static unsigned int demote_folio_list(struct list_head *demote_folios,
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1038 struct pglist_data *pgdat,
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1039 struct mem_cgroup *memcg)
26aa2d199d6f2c Dave Hansen 2021-09-02 1040 {
26aa2d199d6f2c Dave Hansen 2021-09-02 1041 int target_nid = next_demotion_node(pgdat->node_id);
26aa2d199d6f2c Dave Hansen 2021-09-02 1042 unsigned int nr_succeeded;
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1043 nodemask_t allowed_mask, allowed_mems;
32008027289239 Jagdish Gediya 2022-08-18 1044
32008027289239 Jagdish Gediya 2022-08-18 1045 struct migration_target_control mtc = {
32008027289239 Jagdish Gediya 2022-08-18 1046 /*
32008027289239 Jagdish Gediya 2022-08-18 1047 * Allocate from 'node', or fail quickly and quietly.
32008027289239 Jagdish Gediya 2022-08-18 1048 * When this happens, 'page' will likely just be discarded
32008027289239 Jagdish Gediya 2022-08-18 1049 * instead of migrated.
32008027289239 Jagdish Gediya 2022-08-18 1050 */
bd63d0fde2a2c3 Fushuai Wang 2025-10-06 1051 .gfp_mask = (GFP_HIGHUSER_MOVABLE & ~__GFP_RECLAIM) |
32008027289239 Jagdish Gediya 2022-08-18 1052 __GFP_NOMEMALLOC | GFP_NOWAIT,
e42dfe4e0a51b4 Baolin Wang 2024-03-06 1053 .nmask = &allowed_mask,
e42dfe4e0a51b4 Baolin Wang 2024-03-06 1054 .reason = MR_DEMOTION,
32008027289239 Jagdish Gediya 2022-08-18 1055 };
26aa2d199d6f2c Dave Hansen 2021-09-02 1056
49fd9b6df54e61 Matthew Wilcox (Oracle 2022-09-02 1057) if (list_empty(demote_folios))
26aa2d199d6f2c Dave Hansen 2021-09-02 1058 return 0;
26aa2d199d6f2c Dave Hansen 2021-09-02 1059
32008027289239 Jagdish Gediya 2022-08-18 1060 node_get_allowed_targets(pgdat, &allowed_mask);
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1061 allowed_mems = mem_cgroup_node_get_allowed(memcg);
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1062 nodes_and(allowed_mask, allowed_mask, allowed_mems);
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1063 if (nodes_empty(allowed_mask))
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1064 return false;
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1065
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1066 if (target_nid == NUMA_NO_NODE || !node_isset(target_nid, allowed_mask))
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1067 target_nid = node_random(&allowed_mask);
80ef4b3f9c7c95 Bing Jiao 2025-12-23 1068 mtc.nid = target_nid;
32008027289239 Jagdish Gediya 2022-08-18 1069
26aa2d199d6f2c Dave Hansen 2021-09-02 1070 /* Demotion ignores all cpuset and mempolicy settings */
29ea04095b9697 SeongJae Park 2025-06-16 1071 migrate_pages(demote_folios, alloc_demote_folio, NULL,
32008027289239 Jagdish Gediya 2022-08-18 1072 (unsigned long)&mtc, MIGRATE_ASYNC, MR_DEMOTION,
26aa2d199d6f2c Dave Hansen 2021-09-02 1073 &nr_succeeded);
26aa2d199d6f2c Dave Hansen 2021-09-02 1074
26aa2d199d6f2c Dave Hansen 2021-09-02 @1075 return nr_succeeded;
26aa2d199d6f2c Dave Hansen 2021-09-02 1076 }
26aa2d199d6f2c Dave Hansen 2021-09-02 1077
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2025-12-27 19:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-27 19:22 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-12-21 23:36 [PATCH v2 0/2] fix demotion targets checks in reclaim/demotion Bing Jiao
2025-12-23 21:19 ` [PATCH v3] mm/vmscan: " Bing Jiao
2025-12-23 21:38 ` Bing Jiao
2025-12-24 1:19 ` Gregory Price
2025-12-26 18:48 ` Bing Jiao
2026-01-05 21:57 ` Bing Jiao
2025-12-24 1:49 ` Chen Ridong
2025-12-26 18:58 ` Bing Jiao
2025-12-26 19:32 ` Waiman Long
2025-12-26 20:24 ` Waiman Long
2026-01-04 9:04 ` Bing Jiao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202512280348.PQDhLdXM-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.