qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, berrange@redhat.com, qemu-block@nongnu.org,
	quintela@redhat.com, mitake.hitoshi@lab.ntt.co.jp,
	Cao jin <caoj.fnst@cn.fujitsu.com>,
	mreitz@redhat.com, sheepdog@lists.wpkg.org, kraxel@redhat.com,
	pbonzini@redhat.com, famz@redhat.com, namei.unix@gmail.com
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v3] util: remove the obsolete non-blocking connect
Date: Mon, 24 Jul 2017 18:07:26 -0400	[thread overview]
Message-ID: <38f43362-e3a3-44ab-9c29-d04b4c825085@redhat.com> (raw)
In-Reply-To: <7fb8c9ff25d183cf7c0f729a90ee4f59c0632d64.1497602554.git.maozy.fnst@cn.fujitsu.com>

This was posted over a month ago with two R-Bs, did it get merged or 
dropped?

--js

On 06/16/2017 04:54 AM, Mao Zhongyi wrote:
> From: Cao jin <caoj.fnst@cn.fujitsu.com>
> 
> The non-blocking connect mechanism is obsolete, and it doesn't
> work well in inet connection, because it will call getaddrinfo
> first and getaddrinfo will blocks on DNS lookups. Since commit
> e65c67e4 & d984464e, the non-blocking connect of migration goes
> through QIOChannel in a different manner(using a thread), and
> nobody use this old non-blocking connect anymore.
> 
> Any newly written code which needs a non-blocking connect should
> use the QIOChannel code, so we can drop NonBlockingConnectHandler
> as a concept entirely.
> 
> Suggested-by: Daniel P. Berrange <berrange@redhat.com>
> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
> Reviewed-by: Juan Quintela <quintela@redhat.com>
> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
> ---
> v3:
> 1. fix the mistake that adds a unmodified file '--help' [Fam Zheng]
> 
> v2:
> 1. block/ssh.c is not compiled in v1 which leads to no error
>     reported when I run make & make check, although I make a
> 	mistake in block/ssh.c, because the package libssh2-devel
> 	missed in my system. Now fixed it.
> 2. Write the prototype in a single line. [Juan Quintela]
> 
> Because it's a minor change, so still add the r-b.
> 
> v1:
> This patch was reviewed by Daniel about a years ago, but it has never
> been merged just since socket_connect() called by net_socket_connect_init()
> where NonBlockingConnectHandler was passed to socket_connect(). it's broken.
> 
> Now this problem was worked around by Daniel's patch(commit 6701e551 'Revert
> "Change net/socket.c to use socket_*() functions" again'). Therefore, resend
> it, of course, part of related code has changed over the years, so changed
> the patch accordingly.
> 
> The reviewed patch listed on:
> https://lists.gnu.org/archive/html/qemu-devel/2016-07/msg06373.html
> 
>   block/sheepdog.c       |   2 +-
>   block/ssh.c            |   2 +-
>   include/qemu/sockets.h |  12 +--
>   io/channel-socket.c    |   2 +-
>   util/qemu-sockets.c    | 205 ++++++-------------------------------------------
>   5 files changed, 28 insertions(+), 195 deletions(-)
> 

[snip]

  reply	other threads:[~2017-07-24 22:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-16  8:54 [Qemu-devel] [PATCH v3] util: remove the obsolete non-blocking connect Mao Zhongyi
2017-07-24 22:07 ` John Snow [this message]
2017-07-25  1:16   ` [Qemu-devel] [Qemu-block] " Mao Zhongyi
2017-07-25  6:18     ` Markus Armbruster
2017-07-25  9:02       ` 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=38f43362-e3a3-44ab-9c29-d04b4c825085@redhat.com \
    --to=jsnow@redhat.com \
    --cc=berrange@redhat.com \
    --cc=caoj.fnst@cn.fujitsu.com \
    --cc=famz@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=maozy.fnst@cn.fujitsu.com \
    --cc=mitake.hitoshi@lab.ntt.co.jp \
    --cc=mreitz@redhat.com \
    --cc=namei.unix@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=sheepdog@lists.wpkg.org \
    /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 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).