mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst: Do not use WQ_MEM_RECLAIM flag for workqueues
According to kernel documentation, this flag should be set if the workqueue will be involved in the kernel's memory reclamation flow. Since it is not, there is no need for the driver's WQ to have this flag set so remove it.
This commit is contained in:
@@ -138,7 +138,7 @@ int isert_global_init(void)
|
||||
spin_lock_init(&isert_glob.portal_lock);
|
||||
init_waitqueue_head(&isert_glob.portal_wq);
|
||||
|
||||
isert_glob.conn_wq = alloc_workqueue("isert_conn_wq", WQ_MEM_RECLAIM, 1);
|
||||
isert_glob.conn_wq = alloc_workqueue("isert_conn_wq", 0, 1);
|
||||
if (!isert_glob.conn_wq) {
|
||||
PRINT_ERROR("Failed to alloc iser conn work queue");
|
||||
return -ENOMEM;
|
||||
|
||||
@@ -1792,7 +1792,7 @@ struct isert_portal *isert_portal_create(struct sockaddr *sa, size_t addr_len)
|
||||
goto err_alloc;
|
||||
}
|
||||
|
||||
portal->reinit_id_wq = alloc_ordered_workqueue("isert_reinit_id_wq", WQ_MEM_RECLAIM);
|
||||
portal->reinit_id_wq = alloc_ordered_workqueue("isert_reinit_id_wq", 0);
|
||||
if (unlikely(!portal->reinit_id_wq)) {
|
||||
PRINT_ERROR("Unable to allocate reinit workqueue");
|
||||
err = -ENOMEM;
|
||||
|
||||
@@ -1111,7 +1111,7 @@ int scst_event_init(void)
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
scst_event_wq = alloc_workqueue("scst_event_wq", WQ_MEM_RECLAIM, 0);
|
||||
scst_event_wq = alloc_workqueue("scst_event_wq", 0, 0);
|
||||
if (unlikely(!scst_event_wq)) {
|
||||
PRINT_ERROR("Failed to allocate scst_event_wq");
|
||||
res = -ENOMEM;
|
||||
|
||||
@@ -15499,7 +15499,7 @@ int __init scst_lib_init(void)
|
||||
|
||||
scst_scsi_op_list_init();
|
||||
|
||||
scst_release_acg_wq = alloc_workqueue("scst_release_acg", WQ_MEM_RECLAIM, 1);
|
||||
scst_release_acg_wq = alloc_workqueue("scst_release_acg", 0, 1);
|
||||
if (unlikely(!scst_release_acg_wq)) {
|
||||
PRINT_ERROR("Failed to allocate scst_release_acg_wq");
|
||||
res = -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user