mesa/src/gallium/auxiliary/pipebuffer
Chia-I Wu 85e74944c6 winsys/amdgpu: fix a race between import and destroy
amdgpu_bo_destroy is called when the bo ref count reaches 0.  But if the
bo is on bo_export_table, amdgpu_bo_from_handle can race with
amdgpu_bo_destroy and increments the bo ref count.  When that happens,
amdgpu_bo_destroy should bail.

v2:
 - reorder amdgpu_bo_free and amdgpu_bo_unmap
 - fix an assert

Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24526>
2023-08-10 21:47:58 +00:00
..
pb_buffer.h winsys/amdgpu: fix a race between import and destroy 2023-08-10 21:47:58 +00:00
pb_buffer_fenced.c util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
pb_buffer_fenced.h
pb_bufmgr.h treewide: replace usage of boolean to bool 2023-06-27 18:18:27 +08:00
pb_bufmgr_cache.c util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
pb_bufmgr_debug.c util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
pb_bufmgr_mm.c util: Remove os/os_thread.h and replace #include "os/os_thread.h" with #include "util/u_thread.h" 2022-11-08 05:21:42 +00:00
pb_bufmgr_slab.c util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
pb_cache.c pipebuffer: use unsigned instead of uint 2023-07-06 12:03:42 +00:00
pb_cache.h pipebuffer: use unsigned instead of uint 2023-07-06 12:03:42 +00:00
pb_slab.c aux/pipebuffer: add a return to pb_slabs_reclaim() 2023-06-21 01:19:22 +00:00
pb_slab.h aux/pipebuffer: add a return to pb_slabs_reclaim() 2023-06-21 01:19:22 +00:00
pb_validate.c util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
pb_validate.h util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00