Re: [PATCH wq/for-7.5 v4 2/2] workqueue: Keep the limits of both max_active domains current

From: Tejun Heo

Date: Fri Nov 06 2026 - 12:43:40 EST


Hello, Breno.

On Fri, Nov 06, 2026 at 07:10:56AM -0800, Breno Leitao wrote:
> > Maybe this means there should be further restrictions on how low max_active
> > can be pushed. For example, a workqueue created with max_active > 1
> > shouldn't be driven down to 1 in either domain, however it gets adjusted, so
> > that whether a workqueue can end up at 1 is decided by the max_active it was
> > created with. One way could be a floor of 2 in the setters and the
> > derivation for workqueues created with max_active > 1, while one created
> > with max_active 1 can still go back to 1, e.g. after being raised. That's
> > just one option though.
>
> Sure. Should the floor cover min_active as well?

Yes. For a workqueue created with max_active > 1,
workqueue_set_min_active() shouldn't take min_active below 2 either.

Thanks.

--
tejun