]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vhost: replace rcu with mutex
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 28 May 2014 14:07:02 +0000 (17:07 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 2 Jun 2014 20:47:59 +0000 (23:47 +0300)
commit2ae76693b8bcabf370b981cd00c36cd41d33fabc
tree12973dd9185c03f1e8efac383a38e71aa6a3379e
parentd89a274af151f4158297d1e0d97d5cd911406c3f
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: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c