drm/amdkfd: Asynchronously free events
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 8 Apr 2022 02:08:03 +0000 (22:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Apr 2022 18:20:13 +0000 (14:20 -0400)
commit34d292d57973dd432e93425de33f8f120cfbdab3
tree946e92bf1fff15528d472892f0993ea6f176e813
parent634c67ee33a7bfb574aba1796d89493ff6614ab7
drm/amdkfd: Asynchronously free events

The synchronize_rcu call in destroy_events can take several ms, which
noticeably slows down applications destroying many events. Use kfree_rcu
to free the event structure asynchronously and eliminate the
synchronize_rcu call in the user thread.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_events.c
drivers/gpu/drm/amd/amdkfd/kfd_events.h