OSDN Git Service

drm/virtio: add worker for object release
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 30 Aug 2019 06:01:16 +0000 (08:01 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 4 Sep 2019 04:54:12 +0000 (06:54 +0200)
commitf0c6cef7e7174bdb11bbf972cded48bbb33bfba4
tree67ce19d823f0b8423176425fd2a0f0342e388909
parent12afce08ed51a67aafcc678f4b6e428d71b1f6fb
drm/virtio: add worker for object release

Move object release into a separate worker.  Releasing objects requires
sending commands to the host.  Doing that in the dequeue worker will
cause deadlocks in case the command queue gets filled up, because the
dequeue worker is also the one which will free up slots in the command
queue.

Reported-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Tested-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190830060116.10476-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_gem.c
drivers/gpu/drm/virtio/virtgpu_kms.c
drivers/gpu/drm/virtio/virtgpu_vq.c