projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
682993b
)
virtio_scsi: use virtqueue_add_inbuf() for virtscsi_kick_event.
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:28 +0000
(15:44 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:15:00 +0000
(15:45 +1030)
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>
drivers/scsi/virtio_scsi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/virtio_scsi.c
b/drivers/scsi/virtio_scsi.c
index
77206d0
..
b53ba9e
100644
(file)
--- 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);