Commit a290aec88a9c4747353ea7aa9b2569bd61297c3c
Committed by
Michael S. Tsirkin
1 parent
bf5e0bd27f
Exists in
master
and in
20 other branches
vhost: fix typos in comment
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
drivers/vhost/net.c
... | ... | @@ -452,7 +452,7 @@ |
452 | 452 | move_iovec_hdr(vq->iov, vq->hdr, vhost_hlen, in); |
453 | 453 | else |
454 | 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 | 456 | copy_iovec_hdr(vq->iov, vq->hdr, sock_hlen, in); |
457 | 457 | msg.msg_iovlen = in; |
458 | 458 | err = sock->ops->recvmsg(NULL, sock, &msg, |
drivers/vhost/vhost.h
... | ... | @@ -102,7 +102,7 @@ |
102 | 102 | * flush the vhost_work instead of synchronize_rcu. Therefore readers do |
103 | 103 | * not need to call rcu_read_lock/rcu_read_unlock: the beginning of |
104 | 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 | 106 | * Writers use virtqueue mutex. */ |
107 | 107 | void __rcu *private_data; |
108 | 108 | /* Log write descriptors */ |