All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hailiang Zhang <zhang.zhanghailiang@huawei.com>
To: Guang Wang <wang.guang55@zte.com.cn>
Cc: berrange@redhat.com, dgilbert@redhat.com, xuquan8@huawei.com,
	zhangchen.fnst@cn.fujitsu.com, eblake@redhat.com,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] migration: Fix colo hang in socket_accept_incoming_migration
Date: Mon, 27 Mar 2017 10:47:59 +0800	[thread overview]
Message-ID: <58D87D5E.8000101@huawei.com> (raw)
In-Reply-To: <1490579897-3793-1-git-send-email-wang.guang55@zte.com.cn>

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,

  reply	other threads:[~2017-03-27  2:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-27  1:58 [Qemu-devel] [PATCH v2] migration: Fix colo hang in socket_accept_incoming_migration Guang Wang
2017-03-27  2:47 ` Hailiang Zhang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-03-24  1:04 Guang Wang
2017-04-03 11:04 ` Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58D87D5E.8000101@huawei.com \
    --to=zhang.zhanghailiang@huawei.com \
    --cc=berrange@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=eblake@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wang.guang55@zte.com.cn \
    --cc=xuquan8@huawei.com \
    --cc=zhangchen.fnst@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.