]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ee0b054adfee471b57bf375f278ae1d693e5344
tree67ce19d823f0b8423176425fd2a0f0342e388909
parent16be9aa7ac62092d82649bdafb3e902f46e03fdb
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