]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdkfd: wait only for IH work on IH exit
authorAndres Rodriguez <andres.rodriguez@amd.com>
Fri, 27 Oct 2017 23:35:33 +0000 (19:35 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 27 Oct 2017 23:35:33 +0000 (19:35 -0400)
We don't need to wait for all work to complete in the IH exit function.
We only need to make sure the interrupt_work has finished executing to
guarantee that ih_kfifo is no longer in use.

Signed-off-by: Andres Rodriguez <andres.rodriguez@amd.com>
Acked-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c

index a1472691e02813ce006d4dfb2f74df2cb06f5b1d..9c08d4670b7f716fd9657dcdb41864e741549347 100644 (file)
@@ -91,11 +91,11 @@ void kfd_interrupt_exit(struct kfd_dev *kfd)
        spin_unlock_irqrestore(&kfd->interrupt_lock, flags);
 
        /*
-        * Flush_scheduled_work ensures that there are no outstanding
+        * flush_work ensures that there are no outstanding
         * work-queue items that will access interrupt_ring. New work items
         * can't be created because we stopped interrupt handling above.
         */
-       flush_scheduled_work();
+       flush_work(&kfd->interrupt_work);
 
        kfifo_free(&kfd->ih_fifo);
 }