mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
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: - commit128ea9f6cc("workqueue: Add system_percpu_wq and system_dfl_wq") - commit930c2ea566("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>
This commit is contained in:
commit
a48ca06cf3
3 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -8821,7 +8821,7 @@ skip_retry_init:
|
|||
}
|
||||
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue