linux-stable/drivers/scsi/qla2xxx
Bart Van Assche b97c0741c7 scsi: Expand all create*_workqueue() invocations
The workqueue maintainer wants to remove the create*_workqueue() macros
because these macros always set the WQ_MEM_RECLAIM flag and because these
only support literal workqueue names. Hence this patch that replaces the
create*_workqueue() invocations with the definition of this macro. The
WQ_MEM_RECLAIM flag has been retained because I think that flag is necessary
for workqueues created by storage drivers. This patch has been generated by
running spatch and git clang-format. spatch has been invoked as follows:

spatch --in-place --sp-file expand-create-workqueue.spatch $(git grep -lEw 'create_(freezable_|singlethread_|)workqueue' */scsi */ufs)

The contents of the expand-create-workqueue.spatch file is as follows:

@@
expression name;
@@
-create_workqueue(name)
+alloc_workqueue("%s", WQ_MEM_RECLAIM, 1, name)
@@
expression name;
@@
-create_freezable_workqueue(name)
+alloc_workqueue("%s", WQ_FREEZABLE | WQ_UNBOUND | WQ_MEM_RECLAIM, 1, name)
@@
expression name;
@@
-create_singlethread_workqueue(name)
+alloc_ordered_workqueue("%s", WQ_MEM_RECLAIM, name)

Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240822195944.654691-2-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2024-08-22 21:28:55 -04:00
..
Kconfig scsi: qla2xxx: Indent help text 2024-04-08 22:01:19 -04:00
Makefile scsi: qla2xxx: edif: Add start + stop bsgs 2021-07-27 00:06:42 -04:00
qla_attr.c scsi: Use device_show_string() helper for sysfs attributes 2024-05-04 17:37:04 +02:00
qla_bsg.c scsi: qla2xxx: Use QP lock to search for bsg 2024-07-10 22:44:10 -04:00
qla_bsg.h scsi: qla2xxx: Add NVMe parameters support in Auxiliary Image Status 2022-09-01 00:30:55 -04:00
qla_dbg.c scsi: qla2xxx: Remove unsupported ql2xenabledif option 2023-08-21 17:45:15 -04:00
qla_dbg.h scsi: qla2xxx: Add Unsolicited LS Request and Response Support for NVMe 2023-08-21 17:45:14 -04:00
qla_def.h scsi: qla2xxx: Reduce fabric scan duplicate code 2024-07-10 22:44:10 -04:00
qla_devtbl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla_dfs.c scsi: qla2xxx: Fix debugfs output for fw_resource_count 2024-05-06 21:27:39 -04:00
qla_dsd.h scsi: qla2xxx: Include the <asm/unaligned.h> header file from qla_dsd.h 2019-08-12 21:34:04 -04:00
qla_edif_bsg.h scsi: qla2xxx: edif: Fix clang warning 2023-01-11 23:48:26 -05:00
qla_edif.c scsi: qla2xxx: Fix off by one in qla_edif_app_getstats() 2024-04-05 21:48:32 -04:00
qla_edif.h scsi: qla2xxx: Relocate/rename vp map 2023-01-11 23:48:25 -05:00
qla_fw.h scsi: qla2xxx: Add NVMe parameters support in Auxiliary Image Status 2022-09-01 00:30:55 -04:00
qla_gbl.h scsi: qla2xxx: Reduce fabric scan duplicate code 2024-07-10 22:44:10 -04:00
qla_gs.c scsi: qla2xxx: Reduce fabric scan duplicate code 2024-07-10 22:44:10 -04:00
qla_init.c scsi: qla2xxx: Convert comma to semicolon 2024-07-10 22:47:12 -04:00
qla_inline.h scsi: qla2xxx: Unable to act on RSCN for port online 2024-07-10 22:44:09 -04:00
qla_iocb.c scsi: qla2xxx: Fix double free of fcport 2024-03-10 18:44:43 -04:00
qla_isr.c scsi: qla2xxx: Remove unused struct 'scsi_dif_tuple' 2024-05-30 20:26:41 -04:00
qla_mbx.c scsi: qla2xxx: Change debug message during driver unload 2024-03-10 18:44:43 -04:00
qla_mid.c scsi: qla2xxx: During vport delete send async logout explicitly 2024-07-10 22:44:10 -04:00
qla_mr.c scsi: qla2xxx: Avoid possible run-time warning with long model_num 2024-04-25 10:41:47 -07:00
qla_mr.h scsi: qla2xxx: Suppress Coverity complaints about dseg_r* 2021-03-24 21:47:20 -04:00
qla_nvme.c scsi: qla2xxx: validate nvme_local_port correctly 2024-07-10 22:44:09 -04:00
qla_nvme.h scsi: qla2xxx: Add Unsolicited LS Request and Response Support for NVMe 2023-08-21 17:45:14 -04:00
qla_nx2.c scsi: qla2xxx: Use named initializers for q_dev_state 2022-02-22 21:11:07 -05:00
qla_nx2.h scsi/qla2xxx: Convert to SPDX license identifiers 2020-09-16 14:31:50 +02:00
qla_nx.c scsi: qla2xxx: Use named initializers for q_dev_state 2022-02-22 21:11:07 -05:00
qla_nx.h scsi: qla2xxx: Allow 32-byte CDBs 2023-08-21 17:37:42 -04:00
qla_os.c scsi: Expand all create*_workqueue() invocations 2024-08-22 21:28:55 -04:00
qla_settings.h scsi/qla2xxx: Convert to SPDX license identifiers 2020-09-16 14:31:50 +02:00
qla_sup.c scsi: qla2xxx: Fix flash read failure 2024-07-10 22:44:10 -04:00
qla_target.c scsi: qla2xxx: Fix command flush on cable pull 2024-03-10 18:44:43 -04:00
qla_target.h scsi: qla2xxx: Relocate/rename vp map 2023-01-11 23:48:25 -05:00
qla_tmpl.c scsi: qla2xxx: Fix premature hw access after PCI error 2022-01-24 23:57:30 -05:00
qla_tmpl.h scsi: qla2xxx: Fix crash during driver load on big endian machines 2020-12-09 11:34:17 -05:00
qla_version.h scsi: qla2xxx: Update version to 10.02.09.300-k 2024-07-10 22:44:10 -04:00
tcm_qla2xxx.c Merge patch series "scsi: target: Allow userspace to config cmd submission" 2023-10-13 15:56:37 -04:00
tcm_qla2xxx.h scsi: qla2xxx: deadlock by configfs_depend_item 2018-12-19 21:26:38 -05:00