]> git.baikalelectronics.ru Git - kernel.git/commit
vhost-net: reduce vq polling on tx zerocopy
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Nov 2012 09:16:55 +0000 (09:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 01:29:58 +0000 (21:29 -0400)
commitd11a49f0ebf945c115d193456774c354aee1928c
treefc754d17a01a4f56272401fd4d73ebe5ee60ede6
parent14fde95acf4ff80167ec7d0d90ab5e9cef057a36
vhost-net: reduce vq polling on tx zerocopy

It seems that to avoid deadlocks it is enough to poll vq before
 we are going to use the last buffer.  This is faster than
28b92e21f335f1b63c773ec20bfa6443c37ed52e.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c