]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: avoid backend flush on vring ops
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Dec 2012 12:03:34 +0000 (14:03 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Dec 2012 15:09:18 +0000 (17:09 +0200)
commitab54518f0df03e1d3e92114051ed591b40caac6f
tree366e06bee572c2578fcce51926a8ae25e04ce66d
parent50e10fae966d993ae8f760fbf7d3bded7dca8a90
vhost: avoid backend flush on vring ops

vring changes already do a flush internally where appropriate, so we do
not need a second flush.

It's currently not very expensive but a follow-up patch makes flush more
heavy-weight, so remove the extra flush here to avoid regressing
performance if call or kick fds are changed on data path.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c
drivers/vhost/tcm_vhost.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h