Skip to content

Commit

Permalink
drm/virtio: Wake up all waiters when capset response comes in.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Riley authored and Gerd Hoffmann committed Jun 6, 2019
1 parent 7fdf478 commit 676a905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/virtio/virtgpu_vq.c
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 676a905

Please sign in to comment.