diff options
author | Asahi Lina <lina@asahilina.net> | 2023-02-05 15:51:24 +0300 |
---|---|---|
committer | Javier Martinez Canillas <javierm@redhat.com> | 2023-02-10 15:13:44 +0300 |
commit | aa8c85affe3facd3842c8912186623415931cc72 (patch) | |
tree | 711df7b21663299a43a5f58040833e7cdd55caf0 /drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | |
parent | 7c18189b14b33c1fbf76480b1bd217877c086e67 (diff) | |
download | linux-aa8c85affe3facd3842c8912186623415931cc72.tar.xz |
drm/shmem-helper: Fix locking for drm_gem_shmem_get_pages_sgt()
Other functions touching shmem->sgt take the pages lock, so do that here
too. drm_gem_shmem_get_pages() & co take the same lock, so move to the
_locked() variants to avoid recursive locking.
Discovered while auditing locking to write the Rust abstractions.
Fixes: 2194a63a818d ("drm: Add library for shmem backed GEM objects")
Fixes: 4fa3d66f132b ("drm/shmem: Do dma_unmap_sg before purging pages")
Signed-off-by: Asahi Lina <lina@asahilina.net>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230205125124.2260-1-lina@asahilina.net
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_bo.c')
0 files changed, 0 insertions, 0 deletions