Re: [PATCH] kernel: Introduce enable_and_queue_work() convenience function
From: Tejun Heo
Date: Wed Mar 13 2024 - 16:11:19 EST
On Mon, Mar 11, 2024 at 03:50:54PM -0700, Allen wrote:
> 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.
Great, I'll open wq/for-6.10 branch once 6.9-rc1 is cut and apply the
patches there.
Thanks.
--
tejun