diff options
author | Dave Airlie <airlied@redhat.com> | 2015-06-16 08:42:13 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-16 12:22:41 +0300 |
commit | d5084f1711c8917d48006e19099060b3b8387bb5 (patch) | |
tree | 6e494b46910e851ec881b554a16124c93aeabcb5 /drivers/gpu/drm/virtio/virtgpu_drv.h | |
parent | 441012aff674c8d2d9b371e1a19320de38eecc84 (diff) | |
download | linux-d5084f1711c8917d48006e19099060b3b8387bb5.tar.xz |
virtio-gpu: add locking for vbuf pool
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_drv.h')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h index ff8de3d6f0b2..6d4db2dba90b 100644 --- a/drivers/gpu/drm/virtio/virtgpu_drv.h +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h @@ -162,6 +162,7 @@ struct virtio_gpu_device { struct virtio_gpu_queue ctrlq; struct virtio_gpu_queue cursorq; struct list_head free_vbufs; + spinlock_t free_vbufs_lock; void *vbufs; bool vqs_ready; |