mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user