fix vhost_user_blk_watch crash
commit9d283f85d755285bf1b1bfcb1ab275239dbf2c7b
authorLi Feng <fengli@smartx.com>
Mon, 23 Mar 2020 05:29:24 +0000 (23 13:29 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Mar 2020 13:52:13 +0000 (29 09:52 -0400)
treef1461461c7482e6e18af9d2063679895ac6a5787
parent32a2d6b1f6b4405f0fc20c031e61d5d48e3d9cd1
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>
hw/block/vhost-user-blk.c
include/hw/virtio/vhost-user-blk.h