vhost: fix typos in comment
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
bf5e0bd27f
commit
a290aec88a
|
@ -452,7 +452,7 @@ static void handle_rx_mergeable(struct vhost_net *net)
|
||||||
move_iovec_hdr(vq->iov, vq->hdr, vhost_hlen, in);
|
move_iovec_hdr(vq->iov, vq->hdr, vhost_hlen, in);
|
||||||
else
|
else
|
||||||
/* Copy the header for use in VIRTIO_NET_F_MRG_RXBUF:
|
/* Copy the header for use in VIRTIO_NET_F_MRG_RXBUF:
|
||||||
* needed because sendmsg can modify msg_iov. */
|
* needed because recvmsg can modify msg_iov. */
|
||||||
copy_iovec_hdr(vq->iov, vq->hdr, sock_hlen, in);
|
copy_iovec_hdr(vq->iov, vq->hdr, sock_hlen, in);
|
||||||
msg.msg_iovlen = in;
|
msg.msg_iovlen = in;
|
||||||
err = sock->ops->recvmsg(NULL, sock, &msg,
|
err = sock->ops->recvmsg(NULL, sock, &msg,
|
||||||
|
|
|
@ -102,7 +102,7 @@ struct vhost_virtqueue {
|
||||||
* flush the vhost_work instead of synchronize_rcu. Therefore readers do
|
* flush the vhost_work instead of synchronize_rcu. Therefore readers do
|
||||||
* not need to call rcu_read_lock/rcu_read_unlock: the beginning of
|
* not need to call rcu_read_lock/rcu_read_unlock: the beginning of
|
||||||
* vhost_work execution acts instead of rcu_read_lock() and the end of
|
* vhost_work execution acts instead of rcu_read_lock() and the end of
|
||||||
* vhost_work execution acts instead of rcu_read_lock().
|
* vhost_work execution acts instead of rcu_read_unlock().
|
||||||
* Writers use virtqueue mutex. */
|
* Writers use virtqueue mutex. */
|
||||||
void __rcu *private_data;
|
void __rcu *private_data;
|
||||||
/* Log write descriptors */
|
/* Log write descriptors */
|
||||||
|
|
Loading…
Reference in New Issue