]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
vhost_net: poll vhost queue after marking DMA is done
authorJason Wang <jasowang@redhat.com>
Mon, 2 Sep 2013 08:41:00 +0000 (16:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:46:57 +0000 (22:46 -0400)
commit19c73b3e08d16ee923f3962df4abf6205127896a
treec41a951349c70e683ab84028facd68d97d9aab9a
parentce21a02913dc79205485637b6e0927a4c800c4a4
vhost_net: poll vhost queue after marking DMA is done

We used to poll vhost queue before making DMA is done, this is racy if vhost
thread were waked up before marking DMA is done which can result the signal to
be missed. Fix this by always polling the vhost thread before DMA is done.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c