Re: [PATCH 00/53] Let create*_workqueue() accept a printf-style format string

From: Bart Van Assche
Date: Mon Jul 01 2024 - 16:14:08 EST


On 7/1/24 12:39 PM, Tejun Heo wrote:
On Sun, Jun 30, 2024 at 03:26:18PM -0700, Bart Van Assche wrote:
1. Introduce the create*_workqueue2() macros that accept a printf-style
format string and argument list.

I don't think we want to update create_workqueue() interface at all. Please
convert them to use alloc_workqueue() instead. Once we convert all
create_workqueue() users then we can just drop the old interface.

The challenge with converging to alloc_workqueue() interface is that the
conversion needs to explicitly decide whether WQ_MEM_RECLAIM is needed or
not but that shouldn't be *too* difficult.

The create*_workqueue() macros are used about 270 times in the Linux
kernel (the macro names also occur in some comments):

$ git grep -nHEw 'create_workqueue|create_freezable_workqueue|create_singlethread_workqueue' | grep -Ev 'Documentation/|include/linux/workqueue' | wc -l
271

That's too much for a single patch series. I can start with converting
the SCSI workqueue creation code.

Thanks,

Bart.