From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 314202DECC2 for ; Wed, 5 Aug 2026 14:53:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785941615; cv=none; b=DNeG7UJ/dROvps8ya82LgdU9U2ivfQSaRDxKhxE5YYx9LXhtwAx2FOtmCJ8rhyqGpl9GYFkzotSdFn0j50+h08s68OyZBzDSG9cFkl/ZfSfoC9pAJ5KeEsIoiJIWzXD2pmvK4a8PnRuVtGEHMkRFX89AQPRzcnHMAjieIF3DNw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785941615; c=relaxed/simple; bh=ElonWCw41fSfSEA2G1xKHfjSP3Gw7iZZMB7JpMGT7C8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=e1mZtFojoP4toGOyxQgunSDlij1X0EnE1y46xFHOwmev9wG62U25LGQKWulQ9FHPYkDbmPPXtkkndI5HYtG1gdyI7ZUPOzYme6tdbyTGAkQWxvCQUOhi6ib0s6v4W0jRMvMTMmanXV3P24Bv87A62ImYIA19wNRqQUJUzXqrPNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=HYFSEIgR; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="HYFSEIgR" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description; bh=wZfXFxyrGKodCrUh/7mz4M/WB7XMhUvVnml8KjNCDYU=; b=HYFSEIgRZPJp6JFFudkKkgADVk 8BS0DtWUwB69XP/ucJW8xgQTN+/dO8F+Z+q6y/RMOgWDM3w8Zs55NRFn/JTeqJR6oR2Ai6NSjWnKz 9mOexrK2NJ5LvmYKNmMKqdjgWGuabwVdj6Hu+OOcQ2UmjJhRk2Fp/ycKd4Z/8tbKIAQor8NIiHzvb nhg7mibeYmtmLQaNNjkLhWTi3XYbQhTYorczLB5VSAauYX8RTWvBFuNANOOKcts081cBdBHZd0YKJ COTpP4aWw9ZUHBh+CrKXgoRLI1TOyM962Dt5+ySh4STtO02nFvCdKGLbgxn+BsTSBZj21TMG3h8fd 17bZObDQ==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1wrczo-00Dzgc-2u; Wed, 05 Aug 2026 14:53:29 +0000 From: Breno Leitao Date: Wed, 05 Aug 2026 07:52:35 -0700 Subject: [PATCH v2 8/9] workqueue: rename alloc_unbound_pwq() to alloc_pwq() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260805-wq-pool-refactor-v2-8-fd498d01d695@debian.org> References: <20260805-wq-pool-refactor-v2-0-fd498d01d695@debian.org> In-Reply-To: <20260805-wq-pool-refactor-v2-0-fd498d01d695@debian.org> To: Tejun Heo , Lai Jiangshan Cc: linux-kernel@vger.kernel.org, marco.crivellari@suse.com, Breno Leitao , kernel-team@meta.com X-Mailer: b4 0.16-dev-f8e9d X-Developer-Signature: v=1; a=openpgp-sha256; l=2056; i=leitao@debian.org; h=from:subject:message-id; bh=ElonWCw41fSfSEA2G1xKHfjSP3Gw7iZZMB7JpMGT7C8=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBqc05KBADhwDH07gv7OMym+kkR/h+u3B701z4C9 vIVg3IFlaiJAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCanNOSgAKCRA1o5Of/Hh3 bXvBD/43x1la5QOID6cHU0s20gBvRo0fYuhDQVCmkkAIXoEiCf4Oy+d71BsR/xbHie+PBKDjTPC uA68z0iiilJu//PxMfkYQ867ZYOpzBfl5UljvBF1bj3/+YyxgXXxQEg3Vs2PFPaJCCVdzz2H2WG bI8CviF/35Mn3DyQ6d2cgezENuRn9v1ffgNCKozcWmQEE9P1iiozDcqLPCstPSGTFrknVmv1BUL EyJWmecajTrzcR3PwSDo+aRPk51GeU8pu0EncHattiwUHpUJ0BonrAoSovkkSZWeZUkPmtxGXI7 pTjz0zggw4VYZ07WuWAlB9VI5urfVy0EPaGsMY43rJzoYk8UMJC+MrhzjA2IqmWX95TNpQKm4Rg OYBn1b84IvUfqjVG9mcWufW/n+DKiteuarlmIEQnFdJDckEgPvvgYdcAzHVnkbC1hk9N3tNpYyD dezijhnUF7dVQhh1oYVTzLNnRADZJ5lWzK1uZZHwnODP6lxpjyNsA2fc0Fc4ABuW/SNyvrkyML3 P+5zF5VHUPyLKbvo639ZV2fsksyC8t7eILfjAf/R8LsYOMhUBsih5KgYyXqw8BirnThTC5bcC+s bOFoKUrhFhZSrKHMpqUN4Crm6D3jEKgdW35jm3rPhz581RBYbZzXEz9AY7QOLSVzMJtp/bjbPmM /5U3ZmvsjuHmb5Q== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D X-Debian-User: leitao This allocates a pwq and binds it to the pool @attrs asks for. Which pool that is becomes a property of the attrs (once per-cpu becomes an affinity scope). Remove the 'unbound" from the function name, given it will be bigger than unbound. No functional change. Signed-off-by: Breno Leitao --- kernel/workqueue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index e13f223e8502d..65ac75431c3be 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -5377,7 +5377,7 @@ static struct worker_pool *get_percpu_pool(struct workqueue_struct *wq, int cpu) } /* obtain a pool matching @attr and create a pwq associating the pool and @wq */ -static struct pool_workqueue *alloc_unbound_pwq(struct workqueue_struct *wq, +static struct pool_workqueue *alloc_pwq(struct workqueue_struct *wq, const struct workqueue_attrs *attrs) { struct worker_pool *pool; @@ -5500,7 +5500,7 @@ apply_wqattrs_prepare(struct workqueue_struct *wq, copy_workqueue_attrs(new_attrs, attrs); wqattrs_actualize_cpumask(new_attrs, unbound_cpumask); cpumask_copy(new_attrs->__pod_cpumask, new_attrs->cpumask); - ctx->dfl_pwq = alloc_unbound_pwq(wq, new_attrs); + ctx->dfl_pwq = alloc_pwq(wq, new_attrs); if (!ctx->dfl_pwq) goto out_free; @@ -5510,7 +5510,7 @@ apply_wqattrs_prepare(struct workqueue_struct *wq, ctx->pwq_tbl[cpu] = ctx->dfl_pwq; } else { wq_calc_pod_cpumask(new_attrs, cpu); - ctx->pwq_tbl[cpu] = alloc_unbound_pwq(wq, new_attrs); + ctx->pwq_tbl[cpu] = alloc_pwq(wq, new_attrs); if (!ctx->pwq_tbl[cpu]) goto out_free; } @@ -5654,7 +5654,7 @@ static void unbound_wq_update_pwq(struct workqueue_struct *wq, int cpu) return; /* create a new pwq */ - pwq = alloc_unbound_pwq(wq, target_attrs); + pwq = alloc_pwq(wq, target_attrs); if (!pwq) { pr_warn("workqueue: allocation failed while updating CPU pod affinity of \"%s\"\n", wq->name); -- 2.53.0-Meta