summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorBob Liu <bob.liu@oracle.com>2020-07-01 11:07:44 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-02 23:13:54 -0400
commit1a9826204109acd3f8e926394b16bd4cdc4c5dbb (patch)
tree9f7ee3cdd31f5ed13ccb763860437798ab34e404 /drivers/scsi/libiscsi.c
parent5aee52c44d9170591df65fafa1cd408acc1225ce (diff)
downloadlinux-1a9826204109acd3f8e926394b16bd4cdc4c5dbb.tar.gz
linux-1a9826204109acd3f8e926394b16bd4cdc4c5dbb.tar.bz2
linux-1a9826204109acd3f8e926394b16bd4cdc4c5dbb.zip
scsi: iscsi: Change iSCSI workqueue max_active back to 1
Commit 3ce419662dd4 ("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/20200701030745.16897-1-bob.liu@oracle.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Bob Liu <bob.liu@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index e5a64d4f255c..49c8a1818baf 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -2629,7 +2629,7 @@ struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht,
"iscsi_q_%d", shost->host_no);
ihost->workq = alloc_workqueue("%s",
WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND,
- 2, ihost->workq_name);
+ 1, ihost->workq_name);
if (!ihost->workq)
goto free_host;
}