commit | 98f9ca0a3faa99b7388578d55eccecf272be4038 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Wed May 28 17:07:02 2014 +0300 |
committer | Michael S. Tsirkin <mst@redhat.com> | Mon Jun 09 16:21:06 2014 +0300 |
tree | 991e7bc48ed0cb9da73aefe8cf454a54fcf96435 | |
parent | 23cc5a991c7a9fb7e6d6550e65cee4f4173111c5 [diff] |
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>