Re: [PATCH] kernel: Introduce enable_and_queue_work() convenience function

From: Allen
Date: Mon Mar 11 2024 - 18:51:39 EST


Tejun
> > The function accepts a target workqueue and a work item as parameters.
> > It first attempts to enable the work item using enable_work(). If the
> > enable operation is successful, the work item is then queued on the
> > specified workqueue using queue_work(). The function returns true if
> > the work item was successfully enabled and queued, and false otherwise.
> >
> > This addition aims to enhance code readability and maintainability by
> > providing a unified interface for the common use case of enabling and
> > queuing work items on a workqueue.
> >
> > Signed-off-by: Allen Pais <allen.lkml@xxxxxxxxx>
>
> I'll apply this together with the rest of the series once v6.10-rc1 opens.
>

Could you please let me know once this is applied or point me to the branch.
I have all the conversion based on this.

I have a series ready for review(a set of 10 patches):
https://github.com/allenpais/for-6.9-bh-conversions/tree/for-6.9

A series that still needs some work(testing and cleanup):
https:/github.com/allenpais/for-6.9-bh-conversions/tree/for-6.9-wip (This
series contains changes to all the files that use tasklets in drivers/*)
I am working on cleaning it up and also testing. They should be ready
for review soon.

Thanks.