]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: Add memory barriers for capset cache.
authorDavid Riley <davidriley@chromium.org>
Mon, 10 Jun 2019 21:18:10 +0000 (14:18 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Jun 2019 07:03:32 +0000 (09:03 +0200)
commit9544967c7c0655d2e15b818626bf20205cfcc714
tree5f224e0d93cd493283881dd7ee567c86a20ee202
parentbd1ee35930a8dd7c73f8cb357df35f81c29c70ac
drm/virtio: Add memory barriers for capset cache.

After data is copied to the cache entry, atomic_set is used indicate
that the data is the entry is valid without appropriate memory barriers.
Similarly the read side was missing the corresponding memory barriers.

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