Re: [RFC 1/1] drivers/dma/*: replace tasklets with workqueue

From: Arnd Bergmann
Date: Wed May 25 2022 - 13:49:05 EST


On Wed, May 25, 2022 at 6:56 PM Allen Pais <apais@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Thank you Linus, Arnd, Vincent and David for the feedback.
>
> This is a lot more than a just conversion of API’s. I am in the process
> Of replacing tasklets with threaded irq’s and hopefully that should be
> A better solution than using workqueues.

I don't think that is much better for the case of the DMA engine
callbacks than the work queue, the problem I pointed out here
is scheduling into task context, which may be too expensive
in some cases, but whether it is or not depends on the slave
driver, not the dmaengine driver.

Even if all the slave drivers are better off using task context
(threaded irq or workqueue), you need to look at the slave
drivers first before you can convert the dmaengine drivers.

Arnd