Re: [PATCH v2] dmaengine: idxd: fix resource leak on dmaengine driver disable
From: Vinod Koul <vkoul@kernel.org>
Date: 2021-10-28 17:25:11
From: Vinod Koul <vkoul@kernel.org>
Date: 2021-10-28 17:25:11
On 25-10-21, 08:01, Dave Jiang wrote:
The wq resources needs to be released before the kernel type is reset by __drv_disable_wq(). With dma channels unregistered and wq quiesced, all the wq resources for dmaengine can be freed. There is no need to wait until wq is disabled. With the wq->type being reset to "unknown", the driver is skipping the freeing of the resources.
Applied, thanks -- ~Vinod