qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/7] reorganize operation of "qemu-nbd -c" and fix it
Date: Tue, 08 Nov 2011 16:08:25 +0100	[thread overview]
Message-ID: <4EB945E9.6050502@redhat.com> (raw)
In-Reply-To: <1320418284-11081-1-git-send-email-pbonzini@redhat.com>

Am 04.11.2011 15:51, schrieb Paolo Bonzini:
> This is another approach to fixing the breakage of "qemu-nbd -c" due
> to mixing fork with threads.  It switches operation of qemu-nbd to
> threads completely, with the exception of daemonization which is moved
> as early as possible to avoid conflicts with threads.
> 
> Patches 1 and 2 are bugfixes to qemu-nbd, the first more or less
> unrelated, the second required by the rest of the patch.
> 
> Patches 3 and 4 change "qemu-nbd -c" to operate within a single process.
> They are enough to fix the current breakage of "qemu-nbd -c -v", but not
> enough for "qemu-nbd -c".  For that you need patch 5 too, which moves
> the daemonization to before the block layer is initialized.
> 
> Patches 6 and 7 remove more warts that are now easily fixed.
> 
> The patches are large, but unfortunately so is the breakage.
> 
> Paolo Bonzini (7):
>   nbd: treat EPIPE from NBD_DO_IT as success
>   qemu-nbd: trap SIGTERM
>   qemu-nbd: rename socket variable
>   qemu-nbd: move client to a thread
>   qemu-nbd: print error messages from the daemon through a pipe
>   qemu-nbd: fix socket creation race condition
>   qemu-nbd: open the block device after starting the client thread
> 
>  nbd.c      |    7 ++
>  qemu-nbd.c |  289 +++++++++++++++++++++++++++++++++++++++--------------------
>  2 files changed, 194 insertions(+), 102 deletions(-)

Thanks, applied all to the block-stable branch (for 1.0)

Kevin

      parent reply	other threads:[~2011-11-08 15:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04 14:51 [Qemu-devel] [PATCH 0/7] reorganize operation of "qemu-nbd -c" and fix it Paolo Bonzini
2011-11-04 14:51 ` [Qemu-devel] [PATCH 1/7] nbd: treat EPIPE from NBD_DO_IT as success Paolo Bonzini
2011-11-04 14:51 ` [Qemu-devel] [PATCH 2/7] qemu-nbd: trap SIGTERM Paolo Bonzini
2011-11-04 14:51 ` [Qemu-devel] [PATCH 3/7] qemu-nbd: rename socket variable Paolo Bonzini
2011-11-04 14:51 ` [Qemu-devel] [PATCH 4/7] qemu-nbd: move client to a thread Paolo Bonzini
2011-11-04 14:51 ` [Qemu-devel] [PATCH 5/7] qemu-nbd: print error messages from the daemon through a pipe Paolo Bonzini
2011-11-04 14:51 ` [Qemu-devel] [PATCH 6/7] qemu-nbd: fix socket creation race Paolo Bonzini
2011-11-04 14:51 ` [Qemu-devel] [PATCH 7/7] qemu-nbd: open the block device after starting the client thread Paolo Bonzini
2011-11-08 15:08 ` Kevin Wolf [this message]

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=4EB945E9.6050502@redhat.com \
    --to=kwolf@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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).