summaryrefslogtreecommitdiffstats
path: root/tools/virtio/ringtest/ptr_ring.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin2018-01-26 00:36:38 +0100
committerDavid S. Miller2018-01-29 18:02:54 +0100
commita07d29c6724a19eab120b7a74a9bfd107d20f69a (patch)
treebbfcf81f49ba2ddfc7e1ab33156dbb95757c1466 /tools/virtio/ringtest/ptr_ring.c
parentskb_array: use __ptr_ring_empty (diff)
downloadkernel-qcow2-linux-a07d29c6724a19eab120b7a74a9bfd107d20f69a.tar.gz
kernel-qcow2-linux-a07d29c6724a19eab120b7a74a9bfd107d20f69a.tar.xz
kernel-qcow2-linux-a07d29c6724a19eab120b7a74a9bfd107d20f69a.zip
ptr_ring: prevent queue load/store tearing
In theory compiler could tear queue loads or stores in two. It does not seem to be happening in practice but it seems easier to convert the cases where this would be a problem to READ/WRITE_ONCE than worry about it. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/virtio/ringtest/ptr_ring.c')
0 files changed, 0 insertions, 0 deletions