From: Mukul Joshi Date: Wed, 20 Mar 2024 22:43:14 +0000 (-0400) Subject: drm/amdkfd: Cleanup workqueue during module unload X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=417f78a2a1c8c2d517db8b2e04785c1c94a563b4;p=linux.git drm/amdkfd: Cleanup workqueue during module unload Destroy the high priority workqueue that handles interrupts during KFD node cleanup. Signed-off-by: Mukul Joshi Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c b/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c index dd3c43c1ad70b..9b6b6e8825934 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); }