diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2018-01-26 02:36:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-29 20:02:54 +0300 |
commit | 30f1d370744cc35f26d78a1dd31aeb0e4be93c38 (patch) | |
tree | 95c9f474b81ed1db9352677eb1c7c3063e049e50 /tools/virtio | |
parent | a07d29c6724a19eab120b7a74a9bfd107d20f69a (diff) | |
download | linux-30f1d370744cc35f26d78a1dd31aeb0e4be93c38.tar.xz |
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>
Diffstat (limited to 'tools/virtio')
-rw-r--r-- | tools/virtio/ringtest/ptr_ring.c | 2 |
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) |