Commit 53c18c99 authored by Heinz Graalfs's avatar Heinz Graalfs Committed by Rusty Russell

virtio_test: verify if virtqueue_kick() succeeded

Verify if a host kick succeeded by checking return value of virtqueue_kick().
Signed-off-by: default avatarHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 67975901
...@@ -172,7 +172,8 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq, ...@@ -172,7 +172,8 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq,
GFP_ATOMIC); GFP_ATOMIC);
if (likely(r == 0)) { if (likely(r == 0)) {
++started; ++started;
virtqueue_kick(vq->vq); if (unlikely(!virtqueue_kick(vq->vq))
r = -1;
} }
} else } else
r = -1; r = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment