freedreno/drm: Get rid of fd_bo_del_locked()
authorRob Clark <robdclark@chromium.org>
Thu, 8 Dec 2022 23:59:12 +0000 (15:59 -0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 19:14:12 +0000 (19:14 +0000)
commitc196e13e1f0b501ed5e5ace38af631f6d6da37ba
tree3597a68b44c3681b4e08607c9c52f6cbf5d55864
parent5136f25667adbd86ff7bf6af71886034ef93544c
freedreno/drm: Get rid of fd_bo_del_locked()

This moves the table_lock into a small critical section in the BO delete
path when we are actually removing the entries from the handle/name
tables, so finally table_lock isn't the big-bo-lock!

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20263>
src/freedreno/drm/freedreno_bo.c
src/freedreno/drm/freedreno_bo_cache.c
src/freedreno/drm/freedreno_device.c
src/freedreno/drm/freedreno_priv.h
src/freedreno/drm/virtio/virtio_device.c