diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-08-13 10:25:09 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-08-28 09:28:06 +0200 |
commit | 744583ecc3d7c5e27d48ff74e575b893637f4b57 (patch) | |
tree | 96305451b58691edc9b66e8821ce8b9870963e93 /drivers/gpu/drm/drm_modeset_helper.c | |
parent | 4100a7b834389e91638a0b789399fd7b31e258c1 (diff) | |
download | linux-744583ecc3d7c5e27d48ff74e575b893637f4b57.tar.gz linux-744583ecc3d7c5e27d48ff74e575b893637f4b57.tar.bz2 linux-744583ecc3d7c5e27d48ff74e575b893637f4b57.zip |
drm/virtio: notify virtqueues without holding spinlock
Split virtqueue_kick() call into virtqueue_kick_prepare(), which
requires serialization, and virtqueue_notify(), which does not. Move
the virtqueue_notify() call out of the critical section protected by the
queue lock. This avoids triggering a vmexit while holding the lock and
thereby fixes a rather bad spinlock contention.
Suggested-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190813082509.29324-3-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/drm_modeset_helper.c')
0 files changed, 0 insertions, 0 deletions