aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2010-11-29 00:48:40 -0500
committerMichael S. Tsirkin <mst@redhat.com>2010-12-09 08:39:15 -0500
commita290aec88a9c4747353ea7aa9b2569bd61297c3c (patch)
treec9d46a48b3f6f8f6986e746f54683241dc0b287c /drivers/vhost
parentbf5e0bd27f7cbaca4d52ae395bbf3715775efebd (diff)
vhost: fix typos in comment
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/net.c2
-rw-r--r--drivers/vhost/vhost.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index d10da280fa0f..14fc189ac0a8 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -452,7 +452,7 @@ static void handle_rx_mergeable(struct vhost_net *net)
452 move_iovec_hdr(vq->iov, vq->hdr, vhost_hlen, in); 452 move_iovec_hdr(vq->iov, vq->hdr, vhost_hlen, in);
453 else 453 else
454 /* Copy the header for use in VIRTIO_NET_F_MRG_RXBUF: 454 /* Copy the header for use in VIRTIO_NET_F_MRG_RXBUF:
455 * needed because sendmsg can modify msg_iov. */ 455 * needed because recvmsg can modify msg_iov. */
456 copy_iovec_hdr(vq->iov, vq->hdr, sock_hlen, in); 456 copy_iovec_hdr(vq->iov, vq->hdr, sock_hlen, in);
457 msg.msg_iovlen = in; 457 msg.msg_iovlen = in;
458 err = sock->ops->recvmsg(NULL, sock, &msg, 458 err = sock->ops->recvmsg(NULL, sock, &msg,
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h
index 073d06ae091f..2af44b7b1f3f 100644
--- a/drivers/vhost/vhost.h
+++ b/drivers/vhost/vhost.h
@@ -102,7 +102,7 @@ struct vhost_virtqueue {
102 * flush the vhost_work instead of synchronize_rcu. Therefore readers do 102 * flush the vhost_work instead of synchronize_rcu. Therefore readers do
103 * not need to call rcu_read_lock/rcu_read_unlock: the beginning of 103 * not need to call rcu_read_lock/rcu_read_unlock: the beginning of
104 * vhost_work execution acts instead of rcu_read_lock() and the end of 104 * vhost_work execution acts instead of rcu_read_lock() and the end of
105 * vhost_work execution acts instead of rcu_read_lock(). 105 * vhost_work execution acts instead of rcu_read_unlock().
106 * Writers use virtqueue mutex. */ 106 * Writers use virtqueue mutex. */
107 void __rcu *private_data; 107 void __rcu *private_data;
108 /* Log write descriptors */ 108 /* Log write descriptors */