]> 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)
commit876079f7a7483567eb96db03ece648acdc548989
tree67ce19d823f0b8423176425fd2a0f0342e388909
parent7de34c815788ef6e9670490cce043725fb910390
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