Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq")
- commit 930c2ea566af ("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>

+3 -3
+1 -1
drivers/scsi/qla2xxx/qla_target.c
··· 8390 8390 goto out_plogi_cachep; 8391 8391 } 8392 8392 8393 - qla_tgt_wq = alloc_workqueue("qla_tgt_wq", 0, 0); 8393 + qla_tgt_wq = alloc_workqueue("qla_tgt_wq", WQ_PERCPU, 0); 8394 8394 if (!qla_tgt_wq) { 8395 8395 ql_log(ql_log_fatal, NULL, 0xe06f, 8396 8396 "alloc_workqueue for qla_tgt_wq failed\n");
+1 -1
drivers/scsi/qla2xxx/tcm_qla2xxx.c
··· 1901 1901 goto out_fabric; 1902 1902 1903 1903 tcm_qla2xxx_free_wq = alloc_workqueue("tcm_qla2xxx_free", 1904 - WQ_MEM_RECLAIM, 0); 1904 + WQ_MEM_RECLAIM | WQ_PERCPU, 0); 1905 1905 if (!tcm_qla2xxx_free_wq) { 1906 1906 ret = -ENOMEM; 1907 1907 goto out_fabric_npiv;
+1 -1
drivers/scsi/qla4xxx/ql4_os.c
··· 8821 8821 } 8822 8822 INIT_WORK(&ha->dpc_work, qla4xxx_do_dpc); 8823 8823 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, 8825 8825 ha->host_no); 8826 8826 if (!ha->task_wq) { 8827 8827 ql4_printk(KERN_WARNING, ha, "Unable to start task thread!\n");