提交 0f875e3f 编写于 作者: A Andres Rodriguez 提交者: Oded Gabbay

drm/amdkfd: wait only for IH work on IH exit

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: NAndres Rodriguez <andres.rodriguez@amd.com>
Acked-by: NOded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
上级 27232055
...@@ -91,11 +91,11 @@ void kfd_interrupt_exit(struct kfd_dev *kfd) ...@@ -91,11 +91,11 @@ void kfd_interrupt_exit(struct kfd_dev *kfd)
spin_unlock_irqrestore(&kfd->interrupt_lock, flags); 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 * work-queue items that will access interrupt_ring. New work items
* can't be created because we stopped interrupt handling above. * can't be created because we stopped interrupt handling above.
*/ */
flush_scheduled_work(); flush_work(&kfd->interrupt_work);
kfifo_free(&kfd->ih_fifo); kfifo_free(&kfd->ih_fifo);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册