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)
commit935cdee7ee159569b0aaa10bd9244660f6672b08
tree366e06bee572c2578fcce51926a8ae25e04ce66d
parent4a7d6455b07845d92e025da222f11de519f90def
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