summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/NCR5380.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2023-05-23 03:13:03 +0200
committerTejun Heo <tj@kernel.org>2023-05-23 03:13:03 +0200
commit6f640df149adf785184656a076b79d90fc4c86cc (patch)
tree848b25a4e37a346894032e56960610abaa7b4499 /drivers/scsi/NCR5380.c
parentmedia: coda: Use alloc_ordered_workqueue() to create ordered workqueues (diff)
downloadlinux-6f640df149adf785184656a076b79d90fc4c86cc.tar.xz
linux-6f640df149adf785184656a076b79d90fc4c86cc.zip
scsi: NCR5380: Use default @max_active for hostdata->work_q
hostdata->work_q only hosts a single work item, hostdata->main_task, and thus doesn't need explicit concurrency limit. Let's use the default @max_active. This doesn't cost anything and clearly expresses that @max_active doesn't matter. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Finn Thain <fthain@linux-m68k.org> Acked-by: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: Michael Schmitz <schmitzmic@gmail.com> Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'drivers/scsi/NCR5380.c')
-rw-r--r--drivers/scsi/NCR5380.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c
index ca85bddb582b..cea3a79d538e 100644
--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -417,7 +417,7 @@ static int NCR5380_init(struct Scsi_Host *instance, int flags)
INIT_WORK(&hostdata->main_task, NCR5380_main);
hostdata->work_q = alloc_workqueue("ncr5380_%d",
WQ_UNBOUND | WQ_MEM_RECLAIM,
- 1, instance->host_no);
+ 0, instance->host_no);
if (!hostdata->work_q)
return -ENOMEM;