]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6901c36936e3f46ab7c39135ef53e7b6efc5f486
tree95c9f474b81ed1db9352677eb1c7c3063e049e50
parent8aa830eb68c62a21d6f5e04ef1ef627990aefc09
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