diff options
| author | Li Feng | 2020-03-23 06:29:24 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2020-03-29 15:52:13 +0200 |
| commit | 9d283f85d755285bf1b1bfcb1ab275239dbf2c7b (patch) | |
| tree | f1461461c7482e6e18af9d2063679895ac6a5787 /include | |
| parent | hw/i386/amd_iommu.c: Fix corruption of log events passed to guest (diff) | |
| download | qemu-9d283f85d755285bf1b1bfcb1ab275239dbf2c7b.tar.gz qemu-9d283f85d755285bf1b1bfcb1ab275239dbf2c7b.tar.xz qemu-9d283f85d755285bf1b1bfcb1ab275239dbf2c7b.zip | |
fix vhost_user_blk_watch crash
the G_IO_HUP is watched in tcp_chr_connect, and the callback
vhost_user_blk_watch is not needed, because tcp_chr_hup is registered as
callback. And it will close the tcp link.
Signed-off-by: Li Feng <fengli@smartx.com>
Message-Id: <20200323052924.29286-1-fengli@smartx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/virtio/vhost-user-blk.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/virtio/vhost-user-blk.h b/include/hw/virtio/vhost-user-blk.h index 05ea0ad183..34ad6f0c0e 100644 --- a/include/hw/virtio/vhost-user-blk.h +++ b/include/hw/virtio/vhost-user-blk.h @@ -38,7 +38,6 @@ typedef struct VHostUserBlk { VhostUserState vhost_user; struct vhost_virtqueue *vhost_vqs; VirtQueue **virtqs; - guint watch; bool connected; } VHostUserBlk; |
