]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amdkfd: Cleanup workqueue during module unload
authorMukul Joshi <mukul.joshi@amd.com>
Wed, 20 Mar 2024 22:43:14 +0000 (18:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Mar 2024 19:54:48 +0000 (15:54 -0400)
Destroy the high priority workqueue that handles interrupts
during KFD node cleanup.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c

index dd3c43c1ad70bdb0022f9d3ab533070c5edb87c8..9b6b6e88259348a17e0fff9a1b15f83d098b892c 100644 (file)
@@ -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);
 }