]> git.proxmox.com Git - mirror_qemu.git/commit
colo-compare: Fix removing fds been watched incorrectly in finalization
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Fri, 17 Feb 2017 02:53:14 +0000 (10:53 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 6 Mar 2017 03:46:02 +0000 (11:46 +0800)
commitb43decb015a6efeb9e3cdbdb80f6547ad7248a4c
treeb3515a7f4b35822f835c9e98fcd0b367c28ed14e
parent8487ce45f890cab208541f01e79579d7b25e1615
colo-compare: Fix removing fds been watched incorrectly in finalization

We will catch the bellow error report while try to delete compare object
by qmp command:
chardev/char-io.c:91: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.

This is caused by failing to remove the right fd been watched while
call qemu_chr_fe_set_handlers();

Fix it by pass the worker_context parameter to qemu_chr_fe_set_handlers().

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c