* [Qemu-devel] [PATCH v2] migration: Fix colo hang in socket_accept_incoming_migration
@ 2017-03-24 1:04 Guang Wang
2017-04-03 11:04 ` Daniel P. Berrange
0 siblings, 1 reply; 4+ messages in thread
From: Guang Wang @ 2017-03-24 1:04 UTC (permalink / raw)
To: berrange
Cc: zhang.zhanghailiang, zhangchen.fnst, eblake, qemu-devel,
Wang guang
From: Wang guang <wang.guang55@zte.com.cn>
The channel socket was initialized manually,
but forgot to set QIO_CHANNEL_FEATURE_SHUTDOWN.
Thus, the colo_process_incoming_thread would hang at recvmsg.
This patch just call qio_channel_socket_new to get channel,
Which set QIO_CHANNEL_FEATURE_SHUTDOWN already.
Signed-off-by: Wang Guang<wang.guang55@zte.com.cn>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
---
io/channel-socket.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/io/channel-socket.c b/io/channel-socket.c
index f546c68..64b36f5 100644
--- a/io/channel-socket.c
+++ b/io/channel-socket.c
@@ -331,16 +331,10 @@ qio_channel_socket_accept(QIOChannelSocket *ioc,
{
QIOChannelSocket *cioc;
- cioc = QIO_CHANNEL_SOCKET(object_new(TYPE_QIO_CHANNEL_SOCKET));
- cioc->fd = -1;
+ cioc = qio_channel_socket_new();
cioc->remoteAddrLen = sizeof(ioc->remoteAddr);
cioc->localAddrLen = sizeof(ioc->localAddr);
-#ifdef WIN32
- QIO_CHANNEL(cioc)->event = CreateEvent(NULL, FALSE, FALSE, NULL);
-#endif
-
-
retry:
trace_qio_channel_socket_accept(ioc);
cioc->fd = qemu_accept(ioc->fd, (struct sockaddr *)&cioc->remoteAddr,
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH v2] migration: Fix colo hang in socket_accept_incoming_migration
@ 2017-03-27 1:58 Guang Wang
2017-03-27 2:47 ` Hailiang Zhang
0 siblings, 1 reply; 4+ messages in thread
From: Guang Wang @ 2017-03-27 1:58 UTC (permalink / raw)
To: berrange, dgilbert
Cc: zhang.zhanghailiang, zhangchen.fnst, eblake, qemu-devel,
Wang guang
From: Wang guang <wang.guang55@zte.com.cn>
The channel socket was initialized manually,
but forgot to set QIO_CHANNEL_FEATURE_SHUTDOWN.
Thus, the colo_process_incoming_thread would hang at recvmsg.
This patch just call qio_channel_socket_new to get channel,
Which set QIO_CHANNEL_FEATURE_SHUTDOWN already.
Signed-off-by: Wang Guang<wang.guang55@zte.com.cn>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
---
io/channel-socket.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/io/channel-socket.c b/io/channel-socket.c
index f546c68..64b36f5 100644
--- a/io/channel-socket.c
+++ b/io/channel-socket.c
@@ -331,16 +331,10 @@ qio_channel_socket_accept(QIOChannelSocket *ioc,
{
QIOChannelSocket *cioc;
- cioc = QIO_CHANNEL_SOCKET(object_new(TYPE_QIO_CHANNEL_SOCKET));
- cioc->fd = -1;
+ cioc = qio_channel_socket_new();
cioc->remoteAddrLen = sizeof(ioc->remoteAddr);
cioc->localAddrLen = sizeof(ioc->localAddr);
-#ifdef WIN32
- QIO_CHANNEL(cioc)->event = CreateEvent(NULL, FALSE, FALSE, NULL);
-#endif
-
-
retry:
trace_qio_channel_socket_accept(ioc);
cioc->fd = qemu_accept(ioc->fd, (struct sockaddr *)&cioc->remoteAddr,
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v2] migration: Fix colo hang in socket_accept_incoming_migration
2017-03-27 1:58 Guang Wang
@ 2017-03-27 2:47 ` Hailiang Zhang
0 siblings, 0 replies; 4+ messages in thread
From: Hailiang Zhang @ 2017-03-27 2:47 UTC (permalink / raw)
To: Guang Wang
Cc: berrange, dgilbert, xuquan8, zhangchen.fnst, eblake, qemu-devel
Hi,
It seems that there is no difference from your previous version.
You don't have to re-send it if there are no changes.
This patch has been reviewed, so you can just wait until maintainers process it :)
Thanks.
On 2017/3/27 9:58, Guang Wang wrote:
> From: Wang guang <wang.guang55@zte.com.cn>
>
> The channel socket was initialized manually,
> but forgot to set QIO_CHANNEL_FEATURE_SHUTDOWN.
> Thus, the colo_process_incoming_thread would hang at recvmsg.
> This patch just call qio_channel_socket_new to get channel,
> Which set QIO_CHANNEL_FEATURE_SHUTDOWN already.
>
> Signed-off-by: Wang Guang<wang.guang55@zte.com.cn>
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> ---
> io/channel-socket.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/io/channel-socket.c b/io/channel-socket.c
> index f546c68..64b36f5 100644
> --- a/io/channel-socket.c
> +++ b/io/channel-socket.c
> @@ -331,16 +331,10 @@ qio_channel_socket_accept(QIOChannelSocket *ioc,
> {
> QIOChannelSocket *cioc;
>
> - cioc = QIO_CHANNEL_SOCKET(object_new(TYPE_QIO_CHANNEL_SOCKET));
> - cioc->fd = -1;
> + cioc = qio_channel_socket_new();
> cioc->remoteAddrLen = sizeof(ioc->remoteAddr);
> cioc->localAddrLen = sizeof(ioc->localAddr);
>
> -#ifdef WIN32
> - QIO_CHANNEL(cioc)->event = CreateEvent(NULL, FALSE, FALSE, NULL);
> -#endif
> -
> -
> retry:
> trace_qio_channel_socket_accept(ioc);
> cioc->fd = qemu_accept(ioc->fd, (struct sockaddr *)&cioc->remoteAddr,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v2] migration: Fix colo hang in socket_accept_incoming_migration
2017-03-24 1:04 [Qemu-devel] [PATCH v2] migration: Fix colo hang in socket_accept_incoming_migration Guang Wang
@ 2017-04-03 11:04 ` Daniel P. Berrange
0 siblings, 0 replies; 4+ messages in thread
From: Daniel P. Berrange @ 2017-04-03 11:04 UTC (permalink / raw)
To: Guang Wang; +Cc: zhang.zhanghailiang, zhangchen.fnst, eblake, qemu-devel
On Fri, Mar 24, 2017 at 09:04:49AM +0800, Guang Wang wrote:
> From: Wang guang <wang.guang55@zte.com.cn>
>
> The channel socket was initialized manually,
> but forgot to set QIO_CHANNEL_FEATURE_SHUTDOWN.
> Thus, the colo_process_incoming_thread would hang at recvmsg.
> This patch just call qio_channel_socket_new to get channel,
> Which set QIO_CHANNEL_FEATURE_SHUTDOWN already.
>
> Signed-off-by: Wang Guang<wang.guang55@zte.com.cn>
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> ---
> io/channel-socket.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
Looks good to me - I'll try to get this into 2.9
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-04-03 11:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-24 1:04 [Qemu-devel] [PATCH v2] migration: Fix colo hang in socket_accept_incoming_migration Guang Wang
2017-04-03 11:04 ` Daniel P. Berrange
-- strict thread matches above, loose matches on Subject: below --
2017-03-27 1:58 Guang Wang
2017-03-27 2:47 ` Hailiang Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).