[PATCH 6/6] virtio_scsi: use virtqueue_add_inbuf() for virtscsi_kick_event.

Rusty Russell
Wed, 06 Mar 2013 05:24:46 -0000

It's a bit clearer, and add_buf is going away.

Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>

diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index bae0c95..612e320 100644
--- a/drivers/scsi/virtio_scsi.c
+++ b/drivers/scsi/virtio_scsi.c
@@ -220,8 +220,8 @@ static int virtscsi_kick_event(struct virtio_scsi *vscsi,

 	spin_lock_irqsave(&vscsi->event_vq.vq_lock, flags);

-	err = virtqueue_add_buf(vscsi->event_vq.vq, &sg, 0, 1, event_node,
-				GFP_ATOMIC);
+	err = virtqueue_add_inbuf(vscsi->event_vq.vq, &sg, 1, event_node,
+				  GFP_ATOMIC);
 	if (!err)
 		virtqueue_kick(vscsi->event_vq.vq);