Commit 676a905b authored by David Riley's avatar David Riley Committed by Gerd Hoffmann

drm/virtio: Wake up all waiters when capset response comes in.

If multiple callers occur simultaneously, wake them all up.
Signed-off-by: default avatarDavid Riley <davidriley@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190605234423.11348-2-davidriley@chromium.orgSigned-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 7fdf478a
...@@ -598,7 +598,7 @@ static void virtio_gpu_cmd_capset_cb(struct virtio_gpu_device *vgdev, ...@@ -598,7 +598,7 @@ static void virtio_gpu_cmd_capset_cb(struct virtio_gpu_device *vgdev,
} }
} }
spin_unlock(&vgdev->display_info_lock); 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, static int virtio_get_edid_block(void *data, u8 *buf,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment