From 3d299a508648e16e9f50c43feb1cd8de20bbbb4f Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Thu, 9 Apr 2026 19:37:07 +0300 Subject: [PATCH] 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. --- qla2x00t-32gbit/qla_target.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qla2x00t-32gbit/qla_target.c b/qla2x00t-32gbit/qla_target.c index 57e23434e..b89033b30 100644 --- a/qla2x00t-32gbit/qla_target.c +++ b/qla2x00t-32gbit/qla_target.c @@ -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");