]> git.itanic.dy.fi Git - linux-stable/commit
vhost: zerocopy: poll vq in zerocopy callback
authorJason Wang <jasowang@redhat.com>
Tue, 6 Aug 2013 09:29:18 +0000 (17:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Sep 2013 13:02:10 +0000 (06:02 -0700)
commit334e23c6f2c893985cc011fbd9a26f2960ec1a97
treed2af795a42ef3727fc80145c31773f0b566b39b6
parentd22586ffdda8938a66e198acff0f2ea64d7ce62e
vhost: zerocopy: poll vq in zerocopy callback

commit c70aa540c7a9f67add11ad3161096fb95233aa2e upstream.

We add used and signal guest in worker thread but did not poll the virtqueue
during the zero copy callback. This may lead the missing of adding and
signalling during zerocopy. Solve this by polling the virtqueue and let it
wakeup the worker during callback.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vhost/vhost.c