OSDN Git Service

drm/virtio: track whether or not a context has been initiated
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 25 Feb 2020 00:07:59 +0000 (16:07 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 25 Feb 2020 08:48:42 +0000 (09:48 +0100)
commitd2a983b220ac6628c53e4cf27a7335d1d29ce5e9
tree3cf52944bdec5e786c8b7767b8c4567cc5bb77dc
parent40cadedd20a5fefba7ebca7cee7a8743a55e2509
drm/virtio: track whether or not a context has been initiated

Use an boolean variable to track whether a context has been
initiated.

v5: Fix possible race and sleep via mutex (olv)

Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200225000800.2966-3-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_ioctl.c
drivers/gpu/drm/virtio/virtgpu_kms.c