Skip to content

Commit a48ca06

Browse files
Merge patch series "Add WQ_PERCPU to alloc_workqueue() users"
Marco Crivellari <marco.crivellari@suse.com> says: Hi, This series continues the effort to refactor the Workqueue API. No behavior changes are introduced by this series. === Recent changes to the WQ API === The following, address the recent changes in the Workqueue API: - commit 128ea9f ("workqueue: Add system_percpu_wq and system_dfl_wq") - commit 930c2ea ("workqueue: Add new WQ_PERCPU flag") The old workqueues will be removed in a future release cycle and unbound will become the implicit default. === Introduced Changes by this series === 1) [P 1-2-3] add WQ_PERCPU to alloc_workqueue() users With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn’t explicitly specify WQ_UNBOUND must now use WQ_PERCPU. WQ_UNBOUND will be removed in future. For more information: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Link: https://patch.msgid.link/20260113145711.242316-1-marco.crivellari@suse.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2 parents d24e091 + e6b4297 commit a48ca06

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/scsi/qla2xxx/qla_target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8390,7 +8390,7 @@ int __init qlt_init(void)
83908390
goto out_plogi_cachep;
83918391
}
83928392

8393-
qla_tgt_wq = alloc_workqueue("qla_tgt_wq", 0, 0);
8393+
qla_tgt_wq = alloc_workqueue("qla_tgt_wq", WQ_PERCPU, 0);
83948394
if (!qla_tgt_wq) {
83958395
ql_log(ql_log_fatal, NULL, 0xe06f,
83968396
"alloc_workqueue for qla_tgt_wq failed\n");

drivers/scsi/qla2xxx/tcm_qla2xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ static int tcm_qla2xxx_register_configfs(void)
19011901
goto out_fabric;
19021902

19031903
tcm_qla2xxx_free_wq = alloc_workqueue("tcm_qla2xxx_free",
1904-
WQ_MEM_RECLAIM, 0);
1904+
WQ_MEM_RECLAIM | WQ_PERCPU, 0);
19051905
if (!tcm_qla2xxx_free_wq) {
19061906
ret = -ENOMEM;
19071907
goto out_fabric_npiv;

drivers/scsi/qla4xxx/ql4_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8821,7 +8821,7 @@ static int qla4xxx_probe_adapter(struct pci_dev *pdev,
88218821
}
88228822
INIT_WORK(&ha->dpc_work, qla4xxx_do_dpc);
88238823

8824-
ha->task_wq = alloc_workqueue("qla4xxx_%lu_task", WQ_MEM_RECLAIM, 1,
8824+
ha->task_wq = alloc_workqueue("qla4xxx_%lu_task", WQ_MEM_RECLAIM | WQ_PERCPU, 1,
88258825
ha->host_no);
88268826
if (!ha->task_wq) {
88278827
ql4_printk(KERN_WARNING, ha, "Unable to start task thread!\n");

0 commit comments

Comments
 (0)