drm/amdkfd: Asynchronously free smi_client
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 8 Apr 2022 14:25:11 +0000 (10:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jun 2022 19:31:30 +0000 (15:31 -0400)
commit414e9f520e897818302a6b1729aa2dad8cc928ca
tree561dd9e0628342e32206655964bfdfa6e6fffed0
parent46ae2af9a8aa168cbad69f21bb1426771339ac9a
drm/amdkfd: Asynchronously free smi_client

The synchronize_rcu may take several ms, which noticeably slows down
applications close SMI event handle. Use call_rcu to free client->fifo
and client asynchronously and eliminate the synchronize_rcu call in the
user thread.

Signed-off-by: Philip Yang <Philip.Yang@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_smi_events.c