tools/virtio: switch to __ptr_ring_empty
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Jan 2018 23:36:39 +0000 (01:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 17:02:54 +0000 (12:02 -0500)
commit30f1d370744cc35f26d78a1dd31aeb0e4be93c38
tree95c9f474b81ed1db9352677eb1c7c3063e049e50
parenta07d29c6724a19eab120b7a74a9bfd107d20f69a
tools/virtio: switch to __ptr_ring_empty

We don't rely on lockless guarantees, but it
seems cleaner than inverting __ptr_ring_peek.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/virtio/ringtest/ptr_ring.c