2023-05-09 02:06:01

by Tejun Heo

[permalink] [raw]
Subject: [PATCH 01/13] scsi: ncr53c8xx: 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 <[email protected]>
Finn Thain <[email protected]>
Michael Schmitz <[email protected]>
"James E.J. Bottomley" <[email protected]>
"Martin K. Petersen" <[email protected]>
[email protected]
[email protected]
---
drivers/scsi/NCR5380.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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;

--
2.40.1


2023-05-21 03:41:07

by Tejun Heo

[permalink] [raw]
Subject: [PATCH RESEND 01/13] scsi: ncr53c8xx: Use default @max_active for hostdata->work_q

From: Tejun Heo <[email protected]>
Subject: scsi: ncr53c8xx: 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 <[email protected]>
Cc: Finn Thain <[email protected]>
Cc: Michael Schmitz <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
Hello,

Resending because I screwed up the cc list in the original posting. The
whole series can be viewed at:

http://lkml.kernel.org/r/[email protected]

It's not a must but it'd be great if I can route this through the workqueue
tree so that it can go together with other related and followup cleanups.

Thanks.

drivers/scsi/NCR5380.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -417,7 +417,7 @@ static int NCR5380_init(struct Scsi_Host
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;


2023-05-21 07:35:35

by Finn Thain

[permalink] [raw]
Subject: Re: [PATCH RESEND 01/13] scsi: ncr53c8xx: Use default @max_active for hostdata->work_q

On Sat, 20 May 2023, Tejun Heo wrote:

> From: Tejun Heo <[email protected]>
> Subject: scsi: ncr53c8xx: Use default @max_active for hostdata->work_q
>

This driver is normally referred to as ncr5380 or NCR5380. (It doesn't
support any other member of the 538x family.)

> 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 <[email protected]>

Acked-by: Finn Thain <[email protected]>

> Cc: Finn Thain <[email protected]>
> Cc: Michael Schmitz <[email protected]>
> Cc: "James E.J. Bottomley" <[email protected]>
> Cc: "Martin K. Petersen" <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> ---
> Hello,
>
> Resending because I screwed up the cc list in the original posting. The
> whole series can be viewed at:
>
> http://lkml.kernel.org/r/[email protected]
>
> It's not a must but it'd be great if I can route this through the
> workqueue tree so that it can go together with other related and
> followup cleanups.
>
> Thanks.
>

No objection from me. I guess it's Martin's call?

2023-05-22 22:38:58

by Martin K. Petersen

[permalink] [raw]
Subject: Re: [PATCH RESEND 01/13] scsi: ncr53c8xx: Use default @max_active for hostdata->work_q


Hi Tejun!

> Subject: scsi: ncr53c8xx: 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.

> It's not a must but it'd be great if I can route this through the workqueue
> tree so that it can go together with other related and followup cleanups.

As Finn pointed out, please make sure it's tagged NCR5380: instead of
ncr53c8xx:. Otherwise OK.

Acked-by: Martin K. Petersen <[email protected]>

--
Martin K. Petersen Oracle Linux Engineering

2023-05-23 01:16:09

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH RESEND 01/13] scsi: ncr53c8xx: Use default @max_active for hostdata->work_q

On Mon, May 22, 2023 at 06:06:56PM -0400, Martin K. Petersen wrote:
>
> Hi Tejun!
>
> > Subject: scsi: ncr53c8xx: 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.
>
> > It's not a must but it'd be great if I can route this through the workqueue
> > tree so that it can go together with other related and followup cleanups.
>
> As Finn pointed out, please make sure it's tagged NCR5380: instead of
> ncr53c8xx:. Otherwise OK.
>
> Acked-by: Martin K. Petersen <[email protected]>

Will update and apply to wq/for-6.5-cleanup-ordered.

Thank you.

--
tejun