[PATCH] drm/amdkfd: Cleanup workqueue during module unload
Felix Kuehling
felix.kuehling at amd.com
Thu Mar 21 17:01:58 UTC 2024
On 2024-03-20 18:52, Mukul Joshi wrote:
> Destroy the high priority workqueue that handles interrupts
> during KFD node cleanup.
>
> Signed-off-by: Mukul Joshi <mukul.joshi at amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling at amd.com>
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c b/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c
> index dd3c43c1ad70..9b6b6e882593 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c
> @@ -104,6 +104,8 @@ void kfd_interrupt_exit(struct kfd_node *node)
> */
> flush_workqueue(node->ih_wq);
>
> + destroy_workqueue(node->ih_wq);
> +
> kfifo_free(&node->ih_fifo);
> }
>
More information about the amd-gfx
mailing list