Re: [PATCH v2 01/18] scsi: Expand all create*_workqueue() invocations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2024-08-16 at 14:55 -0700, Bart Van Assche wrote:
>  	 
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>  The workqueue maintainer wants to remove the create*_workqueue()
> macros
> because these macros always set the WQ_MEM_RECLAIM flag and because
> these
> only support literal workqueue names. Hence this patch that replaces
> the
> create*_workqueue() invocations with the definition of this macro.
> The
> WQ_MEM_RECLAIM flag has been retained because I think that flag is
> necessary
> for workqueues created by storage drivers. This patch has been
> generated by
> running spatch and git clang-format. spatch has been invoked as
> follows:
> 
> spatch --in-place --sp-file expand-create-workqueue.spatch $(git grep
> -lEw 'create_(freezable_|singlethread_|)workqueue' */scsi */ufs)
> 
> The contents of the expand-create-workqueue.spatch file is as
> follows:
> 
> @@
> expression name;
> @@
> -create_workqueue(name)
> +alloc_workqueue("%s", WQ_MEM_RECLAIM, 1, name)
> @@
> expression name;
> @@
> -create_freezable_workqueue(name)
> +alloc_workqueue("%s", WQ_FREEZABLE | WQ_UNBOUND | WQ_MEM_RECLAIM, 1,
> name)
> @@
> expression name;
> @@
> -create_singlethread_workqueue(name)
> +alloc_ordered_workqueue("%s", WQ_MEM_RECLAIM, name)
> 
> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
> 

Reviewed-by: Peter Wang <peter.wang@xxxxxxxxxxxx>





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux