Skip to content

Commit 8a0d18a

Browse files
aloktiwamstsirkin
authored andcommitted
vhost: Fix typos
Fix multiple typos and improve comment clarity across vhost.c. Spelling errors: "thead" -> "thread", "RUNNUNG" -> "RUNNING" and "available". Signed-off-by: Alok Tiwari <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Simon Horman <[email protected]>
1 parent 6e9ef69 commit 8a0d18a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/vhost/vhost.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,10 @@ static void vhost_attach_mm(struct vhost_dev *dev)
594594
if (dev->use_worker) {
595595
dev->mm = get_task_mm(current);
596596
} else {
597-
/* vDPA device does not use worker thead, so there's
598-
* no need to hold the address space for mm. This help
597+
/* vDPA device does not use worker thread, so there's
598+
* no need to hold the address space for mm. This helps
599599
* to avoid deadlock in the case of mmap() which may
600-
* held the refcnt of the file and depends on release
600+
* hold the refcnt of the file and depends on release
601601
* method to remove vma.
602602
*/
603603
dev->mm = current->mm;
@@ -731,7 +731,7 @@ static void __vhost_vq_attach_worker(struct vhost_virtqueue *vq,
731731
* We don't want to call synchronize_rcu for every vq during setup
732732
* because it will slow down VM startup. If we haven't done
733733
* VHOST_SET_VRING_KICK and not done the driver specific
734-
* SET_ENDPOINT/RUNNUNG then we can skip the sync since there will
734+
* SET_ENDPOINT/RUNNING then we can skip the sync since there will
735735
* not be any works queued for scsi and net.
736736
*/
737737
mutex_lock(&vq->mutex);
@@ -2860,7 +2860,7 @@ void vhost_add_used_and_signal_n(struct vhost_dev *dev,
28602860
}
28612861
EXPORT_SYMBOL_GPL(vhost_add_used_and_signal_n);
28622862

2863-
/* return true if we're sure that avaiable ring is empty */
2863+
/* return true if we're sure that available ring is empty */
28642864
bool vhost_vq_avail_empty(struct vhost_dev *dev, struct vhost_virtqueue *vq)
28652865
{
28662866
int r;

0 commit comments

Comments
 (0)