From nobody Wed Apr 8 14:46:27 2026 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) (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 DE9D235DD1C for ; Mon, 23 Feb 2026 10:23:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771842230; cv=none; b=FaM66k6ArJ1HfrQr+2o+zKGbcDPjBuOcD3CFy8WcPqyEBaGigV7LlJB6i2QsmPRwPfBONP925/LBHkT5nX6N1l5S/gQxDgtqGMPe1OYN0j7E3JP21FU7olX6EQPFU3Z9XyKoIz6bfdIfhzheqgUH+qD+Kg5PPEsOFoxDI1uDWGs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771842230; c=relaxed/simple; bh=bjt/BxDgEOySzyKRrK100neR4BHJaa3iPW9iSbWamCk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pNZ38OrvblFyuBPMHVlfgIZtGE8QNKecZEsjpVAXKrmabMIDJrH/vt2Y6pE7tS9mVX4v3CJ0nKkdDStwHYDhW3DJEA2NN0v5+vM4KxmacAq1us7yCNX8U+lLnKfWbTkxWefGbMNWCHD7gKrPONbmBN8mo9Tro9Ik22tz8qa8eAw= 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=HqK7B6/G; arc=none smtp.client-ip=209.85.128.66 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="HqK7B6/G" Received: by mail-wm1-f66.google.com with SMTP id 5b1f17b1804b1-4806f3fc50bso46945995e9.0 for ; Mon, 23 Feb 2026 02:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1771842227; x=1772447027; 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=dUyoF2T2gBbaaeCPHjrOWpLkIBgTtnGfzrJoD7Nw1EA=; b=HqK7B6/GSbk8e6Vp93OBIaxn3S5fTfQQgZ2XsXRdGzS2wwk5pvUe81giLMIc8cVVtT phJmwXZTyqo6gc6xQlodM10XAgOENs7EOWu56OH75yCNakakpR86oBqWKWzPf+SjBdQp +9r6eVziZazGa42T6oiCkLdQLKAhaJbt/xa+oSynlgldO/2dWdaqynNjvUZdDyLNnUyW pd6s3XpWfkp3xyqFw2fFFRAlLD0DBSJQF9a5ppCRfAFx6vOtuEetNwKJAZ/Va7f4tgxd ut3iHA8jzsGuCYqFPRXrBEST7/rsKOaNvcOxexUdzkycfMn3Siu6tl6diMpf3JOWn97Q OTcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771842227; x=1772447027; 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=dUyoF2T2gBbaaeCPHjrOWpLkIBgTtnGfzrJoD7Nw1EA=; b=lCm5hnqLswddG/CiVEYgHfhGjfyGlYjTwCYE5y6VBGiHzim7OJEVvSwQCD3hKCMZHh HT1AT26PannyD/BdBqeljYYJQjX5qHe7qe482iU5F5lrz6P1zHxQFGdUMXAounQklGiy jvIaUDdU5gRZACYQZaNXY70Haj3On2Pyt9V6jUtEV5GM4HTUdXK4K5TPFGR0LcMbM5vZ iesGJJ+4zik/vQbutW4xZbdduUlxadINGvZGNhaxa2HDK/AYPW5DWFwRCC7gsoDPcd62 JMVRy98aC5iewwZC6li0eDHndB2Nj177DHmYNdKo/Xu9uYfrzEU79p/5g/iia20ZzSs5 NVJQ== X-Gm-Message-State: AOJu0YzsU/YVyfmPAspOuup5kuHGT7+qAE89t0NurFMnZ3Zd9lpkTCrj cXhbOJfgyCJj+L0qPQP2cpRBYDWVbD2VIJw2kS5oOsitp+c/IG1zYBHnWHjN7IqX50BtsxLR8Kd WIviY X-Gm-Gg: AZuq6aLQ99AwC6s4CYg7Npc3BFi/SdBFcbGfNa8DLlahcoN18+3HhMmnOnUGUO/lmeI jGqPZVEqpqC/804eCzT7Tf7q+hsAem4pso6yrK9r4WSLRpAkp4R2ViMWECFGRIqtZE3V9Efyv6F +B8u0xouxA8lCjU8wzK8xQiON8hs5x/Qba6e9uQjSlClkXdehKcuLx2tqJkyQKI/tZkMLAIrLLz Lh7/qXw/JYnW5Of5HA47k5N2Yz7OHfpcJX0gFyCI1AC70U+RCr+htRWVbPygpHn8D3uUvzLDN0S ss2rBkjJkxVjIPFM1uet+xnKcQ7uTYjKlt++nr+BJ8bOKfNAEbPOMrICD8IOIukK0qwyCcQRKaK 2+QDVAJwmpYz6Lrde+eui9U+4X5+hOBYs2VBoPPFZlj4DTzbrAmVVRwtIh7Xl9DzbCExNsu+EAv 2v0OllxIF/UG1S6Gw5oGL08tjJL4YNmHlUhOsTVyFum4Zn X-Received: by 2002:a05:600c:8183:b0:47d:3ffa:5f03 with SMTP id 5b1f17b1804b1-483a962e09fmr115119435e9.21.1771842226962; Mon, 23 Feb 2026 02:23:46 -0800 (PST) Received: from linux.fritz.box.box ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483a31bc0e3sm237342465e9.5.2026.02.23.02.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Feb 2026 02:23:46 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , Justin Tee , Naresh Gottumukkala , Paul Ely Subject: [PATCH v2 3/3] nvmet-fc: add WQ_PERCPU to alloc_workqueue users Date: Mon, 23 Feb 2026 11:23:29 +0100 Message-ID: <20260223102336.108512-4-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260223102336.108512-1-marco.crivellari@suse.com> References: <20260223102336.108512-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 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") The refactoring is going to alter the default behavior of alloc_workqueue() to be unbound by default. 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. For more details see the Link tag below. In order to keep alloc_workqueue() behavior identical, explicitly request WQ_PERCPU. Cc: Justin Tee Cc: Naresh Gottumukkala CC: Paul Ely Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Reviewed-by: Christoph Hellwig --- drivers/nvme/target/fc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c index 4eaadc711c99..d161707559ce 100644 --- a/drivers/nvme/target/fc.c +++ b/drivers/nvme/target/fc.c @@ -792,9 +792,9 @@ nvmet_fc_alloc_target_queue(struct nvmet_fc_tgt_assoc *= assoc, if (!queue) return NULL; =20 - queue->work_q =3D alloc_workqueue("ntfc%d.%d.%d", 0, 0, - assoc->tgtport->fc_target_port.port_num, - assoc->a_id, qid); + queue->work_q =3D alloc_workqueue("ntfc%d.%d.%d", WQ_PERCPU, 0, + assoc->tgtport->fc_target_port.port_num, + assoc->a_id, qid); if (!queue->work_q) goto out_free_queue; =20 --=20 2.52.0