Commit a48ca06c authored by Martin K. Petersen's avatar Martin K. Petersen
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 128ea9f6 ("workqueue: Add system_percpu_wq and system_dfl_wq")
- commit 930c2ea5 ("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: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parents d24e091d e6b42979
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8390,7 +8390,7 @@ int __init qlt_init(void)
		goto out_plogi_cachep;
	}

	qla_tgt_wq = alloc_workqueue("qla_tgt_wq", 0, 0);
	qla_tgt_wq = 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");
+1 −1
Original line number Diff line number Diff line
@@ -1901,7 +1901,7 @@ static int tcm_qla2xxx_register_configfs(void)
		goto out_fabric;

	tcm_qla2xxx_free_wq = alloc_workqueue("tcm_qla2xxx_free",
						WQ_MEM_RECLAIM, 0);
						WQ_MEM_RECLAIM | WQ_PERCPU, 0);
	if (!tcm_qla2xxx_free_wq) {
		ret = -ENOMEM;
		goto out_fabric_npiv;
+1 −1
Original line number Diff line number Diff line
@@ -8821,7 +8821,7 @@ static int qla4xxx_probe_adapter(struct pci_dev *pdev,
	}
	INIT_WORK(&ha->dpc_work, qla4xxx_do_dpc);

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