Skip to content
Commit 98f9ca0a authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost: replace rcu with mutex



All memory accesses are done under some VQ mutex.
So lock/unlock all VQs is a faster equivalent of synchronize_rcu()
for memory access changes.
Some guests cause a lot of these changes, so it's helpful
to make them faster.

Reported-by: default avatar"Gonglei (Arei)" <arei.gonglei@huawei.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 23cc5a99
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment