qla2x00t-32gbit: Add WQ_PERCPU to alloc_workqueue()

Upstream workqueue changes introduce a new WQ_PERCPU flag and plan to
switch alloc_workqueue()'s default from per-CPU to unbound

To keep SCST behaviour unchanged across kernels, explicitly request
WQ_PERCPU.
This commit is contained in:
Gleb Chesnokov
2026-04-09 19:37:07 +03:00
parent 428116d373
commit 3d299a5086

View File

@@ -8461,7 +8461,11 @@ 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", 0
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 19, 0)
| WQ_PERCPU
#endif
, 0);
if (!qla_tgt_wq) {
ql_log(ql_log_fatal, NULL, 0xe06f,
"alloc_workqueue for qla_tgt_wq failed\n");