From: Rusty Russell Date: Wed, 20 Mar 2013 05:14:28 +0000 (+1030) Subject: virtio_scsi: use virtqueue_add_inbuf() for virtscsi_kick_event. X-Git-Tag: firefly_0821_release~3680^2~600^2~36 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf9582910b26525d4eeaa9840b07e7bf820f04fb;p=firefly-linux-kernel-4.4.55.git virtio_scsi: use virtqueue_add_inbuf() for virtscsi_kick_event. It's a bit clearer, and add_buf is going away. Signed-off-by: Rusty Russell Reviewed-by: Asias He --- diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 77206d0eb6a9..b53ba9e18f47 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -222,8 +222,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);