diff options
author | Li Feng <fengli@smartx.com> | 2020-03-23 13:29:24 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-03-29 09:52:13 -0400 |
commit | 9d283f85d755285bf1b1bfcb1ab275239dbf2c7b (patch) | |
tree | f1461461c7482e6e18af9d2063679895ac6a5787 /include/hw | |
parent | 32a2d6b1f6b4405f0fc20c031e61d5d48e3d9cd1 (diff) | |
download | 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/hw')
-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; |