Skip to content

Commit 1a98262

Browse files
Bob Liumartinkpetersen
authored andcommitted
scsi: iscsi: Change iSCSI workqueue max_active back to 1
Commit 3ce4196 ("scsi: iscsi: Register sysfs for iscsi workqueue") enabled 'cpumask' support for iSCSI workqueues. However, it is unnecessary to set max_active = 2 since 'cpumask' can still be modified when max_active is 1. This patch sets max_active to 1 so as to keep the same behaviour as before. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Mike Christie <[email protected]> Signed-off-by: Bob Liu <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 5aee52c commit 1a98262

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/scsi/libiscsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,7 @@ struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht,
26292629
"iscsi_q_%d", shost->host_no);
26302630
ihost->workq = alloc_workqueue("%s",
26312631
WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND,
2632-
2, ihost->workq_name);
2632+
1, ihost->workq_name);
26332633
if (!ihost->workq)
26342634
goto free_host;
26352635
}

drivers/scsi/scsi_transport_iscsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4760,7 +4760,7 @@ static __init int iscsi_transport_init(void)
47604760

47614761
iscsi_eh_timer_workq = alloc_workqueue("%s",
47624762
WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND,
4763-
2, "iscsi_eh");
4763+
1, "iscsi_eh");
47644764
if (!iscsi_eh_timer_workq) {
47654765
err = -ENOMEM;
47664766
goto release_nls;

0 commit comments

Comments
 (0)