OSDN Git Service

drm/virtio: Wake up all waiters when capset response comes in.
authorDavid Riley <davidriley@chromium.org>
Wed, 5 Jun 2019 23:44:21 +0000 (16:44 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Jun 2019 07:44:40 +0000 (09:44 +0200)
If multiple callers occur simultaneously, wake them all up.

Signed-off-by: David Riley <davidriley@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190605234423.11348-2-davidriley@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_vq.c

index 2c5eecc..2bac1cb 100644 (file)
@@ -598,7 +598,7 @@ static void virtio_gpu_cmd_capset_cb(struct virtio_gpu_device *vgdev,
                }
        }
        spin_unlock(&vgdev->display_info_lock);
-       wake_up(&vgdev->resp_wq);
+       wake_up_all(&vgdev->resp_wq);
 }
 
 static int virtio_get_edid_block(void *data, u8 *buf,