aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_balloon.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-06-13 00:16:35 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-06-12 08:46:36 -0400
commit9499f5e7ed5224c40706f0cec6542a9916bc7606 (patch)
tree3e4e1b36d3d549ea356e88e6e44359a887c6ee01 /drivers/virtio/virtio_balloon.c
parentef688e151c00e5d529703be9a04fd506df8bc54e (diff)
virtio: add names to virtqueue struct, mapping from devices to queues.
Add a linked list of all virtqueues for a virtio device: this helps for debugging and is also needed for upcoming interface change. Also, add a "name" field for clearer debug messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio/virtio_balloon.c')
-rw-r--r--drivers/virtio/virtio_balloon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 9c76a061a04..0fa73b4d18b 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -218,13 +218,13 @@ static int virtballoon_probe(struct virtio_device *vdev)
218 vb->vdev = vdev; 218 vb->vdev = vdev;
219 219
220 /* We expect two virtqueues. */ 220 /* We expect two virtqueues. */
221 vb->inflate_vq = vdev->config->find_vq(vdev, 0, balloon_ack); 221 vb->inflate_vq = vdev->config->find_vq(vdev, 0, balloon_ack, "inflate");
222 if (IS_ERR(vb->inflate_vq)) { 222 if (IS_ERR(vb->inflate_vq)) {
223 err = PTR_ERR(vb->inflate_vq); 223 err = PTR_ERR(vb->inflate_vq);
224 goto out_free_vb; 224 goto out_free_vb;
225 } 225 }
226 226
227 vb->deflate_vq = vdev->config->find_vq(vdev, 1, balloon_ack); 227 vb->deflate_vq = vdev->config->find_vq(vdev, 1, balloon_ack, "deflate");
228 if (IS_ERR(vb->deflate_vq)) { 228 if (IS_ERR(vb->deflate_vq)) {
229 err = PTR_ERR(vb->deflate_vq); 229 err = PTR_ERR(vb->deflate_vq);
230 goto out_del_inflate_vq; 230 goto out_del_inflate_vq;