Re: [PATCH v4 3/7] padata: dispatch works on different nodes

From: Gang Li
Date: Fri Jan 19 2024 - 09:56:25 EST


On 2024/1/19 10:59, Muchun Song wrote:
On 2024/1/18 20:39, Gang Li wrote:
--- a/kernel/padata.c
+++ b/kernel/padata.c
@@ -485,7 +485,8 @@ void __init padata_do_multithreaded(struct padata_mt_job *job)
      struct padata_work my_work, *pw;
      struct padata_mt_job_state ps;
      LIST_HEAD(works);
-    int nworks;
+    int nworks, nid;
+    static atomic_t last_used_nid = ATOMIC_INIT(0);
last_used_nid is only used during boot time so it could be
__init_data. Otherwise, LGTM.

Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>


OK, thanks.