summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2018-01-26 01:36:39 +0200
committerDavid S. Miller <davem@davemloft.net>2018-01-29 12:02:54 -0500
commit30f1d370744cc35f26d78a1dd31aeb0e4be93c38 (patch)
tree95c9f474b81ed1db9352677eb1c7c3063e049e50
parenta07d29c6724a19eab120b7a74a9bfd107d20f69a (diff)
downloadlinux-30f1d370744cc35f26d78a1dd31aeb0e4be93c38.tar.bz2
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>
-rw-r--r--tools/virtio/ringtest/ptr_ring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtio/ringtest/ptr_ring.c b/tools/virtio/ringtest/ptr_ring.c
index e6e81305ef46..477899c12c51 100644
--- a/tools/virtio/ringtest/ptr_ring.c
+++ b/tools/virtio/ringtest/ptr_ring.c
@@ -187,7 +187,7 @@ bool enable_kick()
bool avail_empty()
{
- return !__ptr_ring_peek(&array);
+ return __ptr_ring_empty(&array);
}
bool use_buf(unsigned *lenp, void **bufp)