From nobody Sun Feb 8 10:03:24 2026 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) (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 DC37D2D7393 for ; Tue, 13 Jan 2026 14:57:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.68 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768316244; cv=none; b=DKbWhLzsyHRoHGyBNRiNZtTm5j23y06LxOIBAsCXtkfyPEVyA5e8qTLeTAkeBSbO9tgR3H+4Au3XXQiPe6wMes2hxQ6KtgmI6ZbmlP1OxF//CMe+TreAqB+Maj2EaSPc8vMiCCvI4F+Z6DzhJ0YALXBs6CpSMj10U2m6CLXkwQY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768316244; c=relaxed/simple; bh=xUVY+Dz6mtf+yKcFsJ+m8+y0vbeY6ptF4xjYL+qR6Bo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fWmHfwfYsaI5+HqrEGfsE982Lea9yfoncUfrTN6q+LynGt+UyN2uYgzKWHUAdSyynkNgPykRBT71geImoPRjl/lk87jojxZJEHloUwDkFggSFAMB2g8fpqsN07IB3ecYzA4MGUmkS6gI+/9+PqhK3ol3Mb5WGXoAII3+G7462Jo= 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=YJ843/1R; arc=none smtp.client-ip=209.85.128.68 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="YJ843/1R" Received: by mail-wm1-f68.google.com with SMTP id 5b1f17b1804b1-47ee0291921so2940705e9.3 for ; Tue, 13 Jan 2026 06:57:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768316241; x=1768921041; 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=0hFLKxCgg4DVA2BYQnPzZOCKSccnjmY1LCX1KgVFeNM=; b=YJ843/1Rd5vWcOwiINGbUgbELktX3nyeanKuSiOiiLWvimsu6uU/FV55bHMCXuD5Bi I4YzqeieiMNB29BSZZQrdc7VwhwBWKR+XV08skp7r7UmHDQhoi2VjlOjphMWFwA/H0vj FOB98uX6UTfeg/to0SfE3PWfOInLsqTs9ZubE/64FBiwuWbSV1YdSwHVkZAERHRCqSri Dve0RYUgzXtrwKTmjJKF/vuFu9JDbWcdQunpq5r4qr8w1WaHUpDWrd28QtyA3wgf9lMg lD1nbYCpduZuIlwCnPH6sAQwZcHm8MIrq3PdjaT+YbAxtCz1oxskf5O78ACI9COMVvoQ GG2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768316241; x=1768921041; 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=0hFLKxCgg4DVA2BYQnPzZOCKSccnjmY1LCX1KgVFeNM=; b=Mb5DwQlpgvQTA9+TVoAAHqRgal4rat/7OUPdJviEyBJ25wt68+rJ6DnAV22BXidBK5 E2zAlL+IAkgxohBPQ8wZr9TrQHnpGQYQIa664K+M0f6XTvTH9ojIwyppvcqOCU0Tvlto lF/jIwLWxpGFj6eY38L/FnJO8P1b5PJUPbkgMml2QZu4BDezuAd7475uGsSJG5CumRDb mnadgMe7iFMffVKnQsLE7JRXhnbNlRiuZIPnYJvo8Nvx0XMazqsjsH6/SK6X/AR0R8sh xb/Y7x/HhSrPgw5ke9gpMstZRMYT7C6pqyfVHFq+6vQxTA1Fu1oudBHTQkMppdXB8BXy Q8yQ== X-Gm-Message-State: AOJu0YwDUv6BuHmffsUjGrVcFWaB7CLEXo5vyccYTka9JDMGCoCa6TYL gTCk1yn+YBHp8pCDx4aLnfX4jWPWiu+wD6/Nv3VOpe6vuvOA3oY0LYPTVcLi5gEpI0iKje1grmv zOUMJ X-Gm-Gg: AY/fxX4x65T+1w06c9iDdjhZEYsRV/nD9nK7tJ8mDwRVkoxUkoLn8PtuzUQZBP4XdV1 y8kqztnnSNNN1ccvlyqakiP86O2nd+zXGX5nZ0diaUJsO/qL8/ck0eY96y0J70xSyHG4H5TH1r9 fE0ZRRXHrrhMYnmYnEU0qgE+ZlDWjNlY9FLcLkGsEEkgUUyI1/KnJQU7pHo6JPb9EzpdSDImt4Z iGz3D5hz/cR2q5JmPUZO7F07801HqfU8nvBUvlUEJxESlRmpaxHyQ1HrWQSHqBsmqPpDm7/bDk+ EUAAbfzFrqyRSEkeHpT7wWAh3ZRENJDO8wnJOB1A+r/wDhhKtn7be8/1RsoHxxKJpOe7TJ0PxRJ zTi2CKpkqFnpniOSL05vYo0lwZiCdmBh3IbAqQbG7WFhBg+jZLk2Vm50pbGPTaERvlQLC1/6mpq kq+k/kUKVoSmHG6BnR8V15m4eM6IZHVELMcyg= X-Google-Smtp-Source: AGHT+IGMKYMnsBy5q3lHF2caHx7b+bcLkDOwakSbhNrSSUaKe0WsXPIA2WZy7D3r1wdP6LfTKyqHUg== X-Received: by 2002:a05:600c:8b57:b0:477:54f9:6ac2 with SMTP id 5b1f17b1804b1-47d849bdfa7mr237829425e9.0.1768316240959; Tue, 13 Jan 2026 06:57:20 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47ecf6a5466sm128498565e9.11.2026.01.13.06.57.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 06:57:20 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E . J . Bottomley" , "Martin K . Petersen" Subject: [PATCH 1/3] scsi: qla4xxx: add WQ_PERCPU to alloc_workqueue users Date: Tue, 13 Jan 2026 15:57:09 +0100 Message-ID: <20260113145711.242316-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113145711.242316-1-marco.crivellari@suse.com> References: <20260113145711.242316-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. Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/scsi/qla4xxx/ql4_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 97329c97332f..125967e5c548 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -8819,7 +8819,7 @@ static int qla4xxx_probe_adapter(struct pci_dev *pdev, } INIT_WORK(&ha->dpc_work, qla4xxx_do_dpc); =20 - ha->task_wq =3D alloc_workqueue("qla4xxx_%lu_task", WQ_MEM_RECLAIM, 1, + ha->task_wq =3D alloc_workqueue("qla4xxx_%lu_task", WQ_MEM_RECLAIM | WQ_P= ERCPU, 1, ha->host_no); if (!ha->task_wq) { ql4_printk(KERN_WARNING, ha, "Unable to start task thread!\n"); --=20 2.52.0 From nobody Sun Feb 8 10:03:24 2026 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) (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 CF9D42D6E60 for ; Tue, 13 Jan 2026 14:57:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.67 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768316245; cv=none; b=ruOnFov5/s5PTbq7qFQrGmPbtyoNYsl2bmBEc32F6eJL1ryZ8Ex9Bpph1IV3+qqJWPkMZQm1QCB/PETUhhD4Ph2NIIeJF/+6eN0cU4UUHhTi4I4QPeZQ9EtgVmYVpGvWiQumWC4Tm4+h4wOoK/IqGdiFbCl+jhAR+EMpJJpXFkQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768316245; c=relaxed/simple; bh=JkhvLC5J3/ByLcBxuC9nR+WqQsVC+JllxZdmDZB3+o8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RRE2TCHgS8EFIwUjmWmLpOoJkPoLpEC8yv71j5++vNN5Ue+XtoluQ8hdNdlmX1Ubs/8FyWYXANrbsnvyG1/W91cARhaKejFXhPpL1kQp6iqv/vZzACewL58dKipY/S9m8YkEUSWSJ1Ddrtk8ov0kj8wlP747QovRRvIdwCiv3C0= 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=Cl2/F/HY; arc=none smtp.client-ip=209.85.128.67 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="Cl2/F/HY" Received: by mail-wm1-f67.google.com with SMTP id 5b1f17b1804b1-4775895d69cso38297625e9.0 for ; Tue, 13 Jan 2026 06:57:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768316242; x=1768921042; 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=0aTvAr1gUcADfL4GDDEP86r73OtKJHoDxRoL3RshDXY=; b=Cl2/F/HYKvUSHt+HlLjWzM6Jqgm1E0fg5nZG08lswTfyQkA1EenCDbUQ0J9xkGQn/q PhEeMjKisjHimu8KEvwF+HbcFxni8WkdQeyo4eMz3Z36CwgXWj4eI8UUlGqlHa852e7z 4iqtX14BpB3qjPeH2fT8hHNf23EcgXR+ZT8BMkqQeCqzqKmAm5n5VwZ2c6KLtZ2G9JcD Gk2J89SayhC0ETz4Zhj/KvbWpg+ORiaUApaMyvHf1L9sMyuPc7M6P/l1+HCEuLY6a5W4 19MUYRI6rZMkQwFjibkEVQttckiED5O5ZEw/LXsoeYmqezpUejSqfLDl9p5AIUKtIU1u 0n7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768316242; x=1768921042; 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=0aTvAr1gUcADfL4GDDEP86r73OtKJHoDxRoL3RshDXY=; b=hIbKRsftmh7S67BOGzsTNEXSjF8egn5oCACvRwjYlZWsoz3vHfSkR3f5MkC1ngV3KQ JieVtng8BuhlqJXkgLSjQdcc/cgUSNYMhxT7qmicmssSZgb/unJXHbD3iOqx1CxesGvL brUOCUyPeC5X+jbPEEJ/AO8B+GYTt/gDiTXgj8VE3Rhbfa8iXq7o/bNerrIaHkoWxTh7 +kUP/lQgVgggAlLq0uPZCOD7oidGKHIusq/ng4TO2/M+CrgJyxtpvq1pLLOfAY4APqyw 3GTiKHpJ9NP3stnJH0zOfHT6+4vRDV1+9mCTQUVI5gZpvQNXeYZixUw1wxDh/RiExbBl bjFA== X-Gm-Message-State: AOJu0YxqRh1RA/h4Vi1Y0MPt/xzUSYlozqBACVaCrnx8x/0neAsCvrov TpHiW8U7MiITGEM5Ei2qsypd6T2P6JLdwEa31Tptfe8Ysu3SLmqw6CEmuv1/NZQDHctLL8mHMgp b+28/ X-Gm-Gg: AY/fxX4i9MJp3Og6UKHV8gs6reKD/BM/9jG6HqgyEAXnieoglj/cEubkTBQbha9xVjH ozxt3YQOS4/o1WvQ/onsF0I6lz7aeIvjioVkwDyWk6N3S5zDr4bySxEurTm1crkmuEvdcjYV2Sj wFxk/kPu0/nYt4IZTThgYxh6vjrwbiQqwfVgvLeD/k2OF8y73CM0Rw5hRG4wFyKCIazKy4c3HKO jYqUKyKfAVXrxHnAgarnYRxlwMvo/U+uY9SSnOC/PE+xZKynj0ko34dsmL7dTWg2pFtmUOCH874 iB44BFDbElRx1xcWj4GeEV2z6bKZRgFp0lgTaHTVjXDImIMxf28pus2/qhXTvkSakc3eqNisWu1 i8hjseQh2vyfVhfE6OxsyLL/HsqMAFD5mDObK73c1rwUDkAmS+4ZEWjWrXyIcPmqYTcGzEmkML7 wKq7MTcD3c9BGUX5G2MflrTb6b+jRolGqchp0= X-Google-Smtp-Source: AGHT+IEmifR2V2qsCCKDhF7TtW4lDyqRYQgAVIIVPUscIKnOYxWvD6YPD+5xUu47DUK68kvULGa9cA== X-Received: by 2002:a05:600c:8b84:b0:47e:e20e:bbbf with SMTP id 5b1f17b1804b1-47ee20ebdfbmr1897995e9.24.1768316242039; Tue, 13 Jan 2026 06:57:22 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47ecf6a5466sm128498565e9.11.2026.01.13.06.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 06:57:21 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E . J . Bottomley" , "Martin K . Petersen" Subject: [PATCH 2/3] scsi: qla2xxx: add WQ_PERCPU to alloc_workqueue users Date: Tue, 13 Jan 2026 15:57:10 +0100 Message-ID: <20260113145711.242316-3-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113145711.242316-1-marco.crivellari@suse.com> References: <20260113145711.242316-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. Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/scsi/qla2xxx/tcm_qla2xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_= qla2xxx.c index 2fff68935338..b00ae7a664da 100644 --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c @@ -1901,7 +1901,7 @@ static int tcm_qla2xxx_register_configfs(void) goto out_fabric; =20 tcm_qla2xxx_free_wq =3D alloc_workqueue("tcm_qla2xxx_free", - WQ_MEM_RECLAIM, 0); + WQ_MEM_RECLAIM | WQ_PERCPU, 0); if (!tcm_qla2xxx_free_wq) { ret =3D -ENOMEM; goto out_fabric_npiv; --=20 2.52.0 From nobody Sun Feb 8 10:03:24 2026 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) (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 4A7592D7DEE for ; Tue, 13 Jan 2026 14:57:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.68 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768316247; cv=none; b=Ou34H5IWZX9lcDQd+b4AobXjWmLqnsO2LzkftnVQS9LqOQt9x767k+n21BS9UDGyDY3fS5qQjaaX1kJZQWLkLR8NwrY0/nXRmsmNL38XoxQXONQUGZEZaPd6T5rkZ3s7/GSZhUQdxqUrWNPXy36lbYa9QTHB1n/oWG5x+Y3s6u8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768316247; c=relaxed/simple; bh=XbPRJVIj9NvQT1soNjv88NN1qqiSs0zpG0pE3SN42WM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Zq+q3y48O40SRp3DAAFffnpw6thLsB4Se1jZ16pTKDtllVv4CDg4Ku3pbQLzJo3ilmElWIcJsZ+lq3c0eWat3uUk1gLYP2FlqZ1PAcoBNCDlE1tkxMb9YwRwVei0njf9vxlAt2NQbOu6YDxiHBlykH3czdtNfYMOpRfMUarSuZQ= 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=HdVAkFkW; arc=none smtp.client-ip=209.85.128.68 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="HdVAkFkW" Received: by mail-wm1-f68.google.com with SMTP id 5b1f17b1804b1-47ee07570deso1855295e9.1 for ; Tue, 13 Jan 2026 06:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768316243; x=1768921043; 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=5NtCKpXMmiGkCvj3M00veC7KRMP5TEp6tH8n8g+k5pQ=; b=HdVAkFkWREM8HU94XGBLv07nf095z+MmvSuLvmPV7tbj65cVGiGREph8Tq9DJ90CRG lEeLIHmQGfxlsbSmIEpkjSACSHzs3D8PbGeiyLU5npAXWvgS8YBIOB3W140jJUYjmgcX Pj3lHseOcAdbadVWPxRiH1dz9NjgNXxsqMzgrNRNbPnKxnSzfAGLNkDg2dgtuo4kTAHm lt68RCwnyhXZHEBgRjkyIdFGrMcS/QB1CZclRDSmb+9cZuOTgrsKlifeJ4O7ZISAEFgp SNOvJiW9A4V8D1/Q7CpJjA9PF6uw7g3LiWECA+0Kup2tvKux10v5YwS3UdBMe/v2QaBs WZ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768316243; x=1768921043; 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=5NtCKpXMmiGkCvj3M00veC7KRMP5TEp6tH8n8g+k5pQ=; b=uUdXXne5OlVNVGFHPopsiOSGIelTtXsQIUbe8ACrPLnCkyykO7WK6QRriJLSp05d/W q+rAFBIQwsQFwy1MGnR9alGCtM2RJGBgRyKEN55Y/VUMR7E/U89hu5ysizEKDQ5PDB/F NkmcFQOSOnDEus5lWksIoI3+dslrhlWx/CN1D9nU5XlSXDzQK64VtOKaPHxviZ2waSyG E71H10CQo+RgCE6llX5/VtuFNoc5eUFYvLNISJ7z8aCTr1bzhXh1ROtYRDDHrb13kM7r TtnljgTmSIJSNbGi8YgBs2NRZCLdjMcpiwQfQRz92MlGYf5nacPLWjdT2NchBm9Prmgy Rtbw== X-Gm-Message-State: AOJu0YwbIdhg744Xe17L2buJWvaa1rkeSIuEWYYWfxnOwkcAfxuHHYhu R5TDRzKwhV70sg1Uffa1cGucylwof5mpqX1fJRsdbWldaXb3ym4ZAB0g0uExvLh8rUlOqGKNMwL WLViV X-Gm-Gg: AY/fxX7ulngvyY0DYWfk99k2WX1DPgVUFlY4fVWi9mU6Sz7kyk88tTh9T6YuXZTm/KI IRzyFlpZP3+AeDWrCbazQMV0cfKon4xH4ApsrHunE25VwbgrHklKqf7le7lSWKq+lGfJiCtXxMc DkaVWXahbqpzZJYn+xQY6GUVoAV+4HbaDo49COfdp84RaU/27p0zyTyDP2jcaBrum3RlwGx+VRK gdKzeapx+zidXeNVMxuLAJQ9t0NuzheYq4yV2dHUtif/mj8dbe6BvSn0OL3tar+SnKsIetp1QI9 41TNbeJDYgdxq+ZYOF4ltVQ8G7L7rc96BIYBq6Kl+8WbyvArTRd0/qPSG2wIz98I1o5nGIt54td PlrlPTYJM81yyS2Y7mDe/6blW7J/WM/KZoHMcGFTjUViOMg8QeFv5vG7V+HNmBQSPSeWpJQc1/9 a8IMZkdG1qX52GYfzEjfNy/szTyvD4ISMllfI= X-Google-Smtp-Source: AGHT+IF0UlDyV1YXD8L+RJcw39FdxGSjXzq9BCkjijCcXDCnvi3CO0LC4Q8UaY4OS3Rl6HHdf9zpKQ== X-Received: by 2002:a05:600c:1392:b0:46e:4586:57e4 with SMTP id 5b1f17b1804b1-47d84b32ef1mr258980645e9.24.1768316243240; Tue, 13 Jan 2026 06:57:23 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47ecf6a5466sm128498565e9.11.2026.01.13.06.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 06:57:22 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E . J . Bottomley" , "Martin K . Petersen" Subject: [PATCH 3/3] scsi: qla2xxx: target: add WQ_PERCPU to alloc_workqueue users Date: Tue, 13 Jan 2026 15:57:11 +0100 Message-ID: <20260113145711.242316-4-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113145711.242316-1-marco.crivellari@suse.com> References: <20260113145711.242316-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. Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/scsi/qla2xxx/qla_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_t= arget.c index d772136984c9..ef3a5fac2b48 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -8390,7 +8390,7 @@ int __init qlt_init(void) goto out_plogi_cachep; } =20 - qla_tgt_wq =3D alloc_workqueue("qla_tgt_wq", 0, 0); + qla_tgt_wq =3D alloc_workqueue("qla_tgt_wq", WQ_PERCPU, 0); if (!qla_tgt_wq) { ql_log(ql_log_fatal, NULL, 0xe06f, "alloc_workqueue for qla_tgt_wq failed\n"); --=20 2.52.0