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 <rusty@rustcorp.com.au> Reviewed-by: Asias He <asias@redhat.com>
This commit is contained in:
parent
682993b4e4
commit
bf9582910b
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ static int virtscsi_kick_event(struct virtio_scsi *vscsi,
|
||||||
|
|
||||||
spin_lock_irqsave(&vscsi->event_vq.vq_lock, flags);
|
spin_lock_irqsave(&vscsi->event_vq.vq_lock, flags);
|
||||||
|
|
||||||
err = virtqueue_add_buf(vscsi->event_vq.vq, &sg, 0, 1, event_node,
|
err = virtqueue_add_inbuf(vscsi->event_vq.vq, &sg, 1, event_node,
|
||||||
GFP_ATOMIC);
|
GFP_ATOMIC);
|
||||||
if (!err)
|
if (!err)
|
||||||
virtqueue_kick(vscsi->event_vq.vq);
|
virtqueue_kick(vscsi->event_vq.vq);
|
||||||
|
|
Loading…
Add table
Reference in a new issue