vhost: fix zcopy reference counting
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Jul 2011 10:19:18 +0000 (13:19 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Jul 2011 10:28:34 +0000 (13:28 +0300)
commit75fd9edc1054a1fa1d1411adec368dadf68e764e
treed1a54e4bfb7a3d000c2a70465e54dc155bb6b475
parent2723feaa8ec64f677f644c9189ed87d83f5559c1
vhost: fix zcopy reference counting

Fix get/put refcount imbalance with zero copy,
which caused qemu to hang forever on guest driver unload.

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