From nobody Mon Feb 9 04:13:57 2026 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3E8130ACED for ; Thu, 13 Nov 2025 16:20:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763050844; cv=none; b=FqiXu86wbkJIGXyb/kGHZixi/o0RdjkTgJpC0PpVSiYMEx00ooQZJEpW3DiSNyMPkiDClZGmOlmjG++DgcxoeTOZvIQoBGoYVqO5GN1z041A7TQR+BLFh4lSUd63l8J3XqnKgoR77mUbBVP+wGgdVppo7DNvEXhuyiYDRki+5XM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763050844; c=relaxed/simple; bh=5Q6+jx694R5FD9t9uLYyFN92bEi8X+fGwEsS2Iy+wf8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M9r67R9Yj9OYO2nRhthZguZLXeLV03Ix2J/1n4ceQs8irZhRNgVvJS0QfcsM9c6E8iiPnYfLvcYRlmNO4U9hupQp96f7uIV24nlbVu3mkUKjA3NmrkwgrlELc+2G0MyocPXokkaW/x9599eTKs8hKtUZJ+p8+HfEz0K7uifxdwA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=RZo/K8MG; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="RZo/K8MG" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4775638d819so6133095e9.1 for ; Thu, 13 Nov 2025 08:20:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1763050841; x=1763655641; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UILebnM/hGlC/4mGqUQsEbI9oK9lCHY4NHYgMXAAz80=; b=RZo/K8MGI65fLtPI3dbFS/as2t2IzBrpZBk9bA9CTjTogy//zgteyPMznbwN7Z4EdZ /1mqVNKHdbm2lGJwsQ0WInQzZsWUoTXXaE/awhFYb0KGG9BA6EI4QL5dAGp8bymXlREh jhLpWE43KzmIPZ16NHpJ1pFGCQpg030GMbybUOq5JH6frQTKllvyzky/56tayxdsdAqQ rL0a+QUo4nb8BzCTEDiHjvwEeMUKsQYeTowb4KKh+yIvxFjw3vo7B694BCFW+A6eXDPm vjqwvZFVmlC3aB7X/hoCgDYhBBnl5iNAqWTNa0aTOedviHo2iaCC6MVK5yNV3YDh9/Io Ggfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763050841; x=1763655641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=UILebnM/hGlC/4mGqUQsEbI9oK9lCHY4NHYgMXAAz80=; b=gOi7B0chUN/068ZznNf8kFGPjZRFhiDV4R/RtQVhivf0qorQbkAxpUkbuFhu+fwf19 JNlAvqjOUmbEoD5i6rHMrpsP6GfRgk2cljnI7d2MQg/eJyP2LDoHmGRQim1FP65SRm99 7neidG4ciq2XYyPHmx9cQfTrsl2z/WRWAPcGe12X8S7is/VIrIc6FBYVY7a31Bc4fGlb 5i5U83eOlNfS87Oe8XHzs6AnMVQA78ra5E8jdKk7EPBPuC+kHMB6ntwdt/2HS5JQ+yd8 wCFo2jFY/rHct7VWaxpqgVrRsFNwzRTPVcd9LCAPJjRdz6R1+I/6rB7DxrzdyTsbBk8b sH+w== X-Gm-Message-State: AOJu0YwRIu1QqjwSZFEJjSMZib1GpLE/U6ItPTVY/nbIVxr5zV7sTZiB tRZcF3eEzDOj62mSCtc4VT/cqstjKI77faGKyzs2Upn5GJqvQ//tRLnuG2dH03A9/5mrnUPclXx j1Xzw X-Gm-Gg: ASbGncuV7XplBjWPlM+nrAQZMZiKk8Qow1HWBtLvYB8l6PP3u4s6Wqc0Qpl5OKpzvvB X05xWz+gCTBvJnNeE4plFioouqWmUPw9XvtkZB0zcvRiu9LDvn+uy72jL3sOfL6435JYBJLEbWk x2DOwF6VHB52y44gqv6eFpS2UTF5dMPJRygk/rSfVB0/DNI9Tj5aVvHGvqvKJgRsQ1QPCzCROJn MdYRVgzVSlutn4Bu8Iv4Je9gyQ6pcOxhIza7ts/6Ab2cAzsXN1JKST2zbqCgjJtFx8AUVdEiA9N BtDtSNg2bmARLrFOarxJ7KpUVynKYGrfRvS5/rg7X0ZBRtu+E4yX6lOf/3RlaUwYdbGq29qZWqq Xdazgqz72KBuLUUa+NJPGLPvolLVgWJ4J9flBKGeHPTaAnZ48IWyQAVB+LQOb6hybDg+DP90qvq jteARXwhzrWYuLRyKXuEFdufPB X-Google-Smtp-Source: AGHT+IGRGVhomNJJ/A5Jk/utPwPfv4ER6SuTf9w33S/DWCwxgGisxtoZnw3vVDZc2FooeR+k4EqTPA== X-Received: by 2002:a05:600c:4503:b0:477:a9e:859a with SMTP id 5b1f17b1804b1-4778fea8b8dmr350895e9.22.1763050840655; Thu, 13 Nov 2025 08:20:40 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b53f203afsm4680578f8f.39.2025.11.13.08.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Nov 2025 08:20:40 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Johannes Berg Subject: [PATCH 1/3] ath6kl: add WQ_PERCPU to alloc_workqueue users Date: Thu, 13 Nov 2025 17:20:30 +0100 Message-ID: <20251113162032.394804-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251113162032.394804-1-marco.crivellari@suse.com> References: <20251113162032.394804-1-marco.crivellari@suse.com> 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: quoted-printable Currently if a user enqueues a work item using schedule_delayed_work() the used wq is "system_wq" (per-cpu wq) while queue_delayed_work() use WORK_CPU_UNBOUND (used when a cpu is not specified). The same applies to schedule_work() that is using system_wq and queue_work(), that makes use again of WORK_CPU_UNBOUND. This lack of consistency cannot be addressed without refactoring the API. For more details see the Link tag below. alloc_workqueue() treats all queues as per-CPU by default, while unbound workqueues must opt-in via WQ_UNBOUND. This default is suboptimal: most workloads benefit from unbound queues, allowing the scheduler to place worker threads where they=E2=80=99re needed= and reducing noise when CPUs are isolated. This continues the effort to refactor workqueue APIs, which began with the introduction of new workqueues and a new alloc_workqueue flag in: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") This change adds a new WQ_PERCPU flag to explicitly request alloc_workqueue() to be per-cpu when WQ_UNBOUND has not been specified. With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn=E2=80=99t explicitly specify WQ_UNB= OUND must now use WQ_PERCPU. Once migration is complete, WQ_UNBOUND can be removed and unbound will become the implicit default. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ --- drivers/net/wireless/ath/ath6kl/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/usb.c b/drivers/net/wireless/a= th/ath6kl/usb.c index 38bb501fc553..bfb21725d779 100644 --- a/drivers/net/wireless/ath/ath6kl/usb.c +++ b/drivers/net/wireless/ath/ath6kl/usb.c @@ -637,7 +637,7 @@ static struct ath6kl_usb *ath6kl_usb_create(struct usb_= interface *interface) ar_usb =3D kzalloc(sizeof(struct ath6kl_usb), GFP_KERNEL); if (ar_usb =3D=3D NULL) return NULL; - ar_usb->wq =3D alloc_workqueue("ath6kl_wq", 0, 0); + ar_usb->wq =3D alloc_workqueue("ath6kl_wq", WQ_PERCPU, 0); if (!ar_usb->wq) { kfree(ar_usb); return NULL; --=20 2.51.1