qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Laurent Vivier <laurent@vivier.eu>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, pannengyuan@huawei.com, qemu-block@nongnu.org
Subject: Re: [PATCH] nbd: Fix regression with multiple meta contexts
Date: Wed, 12 Feb 2020 06:10:29 -0600	[thread overview]
Message-ID: <3a92e3c5-0506-6970-098b-019f9752dcc1@redhat.com> (raw)
In-Reply-To: <f498beb4-dfd0-a7dc-33f8-5c62d3738c1b@vivier.eu>

On 2/12/20 3:24 AM, Laurent Vivier wrote:
> Le 06/02/2020 à 18:38, Eric Blake a écrit :
>> Detected by a hang in the libnbd testsuite.  If a client requests
>> multiple meta contexts (both base:allocation and qemu:dirty-bitmap:x)
>> at the same time, our attempt to silence a false-positive warning
>> about a potential uninitialized variable introduced botched logic: we
>> were short-circuiting the second context, and never sending the
>> NBD_REPLY_FLAG_DONE.  Combining two 'if' into one 'if/else' in
>> bdf200a55 was wrong (I'm a bit embarrassed that such a change was my
>> initial suggestion after the v1 patch, then I did not review the v2
>> patch that actually got committed). Revert that, and instead silence
>> the false positive warning by replacing 'return ret' with 'return 0'
>> (the value it always has at that point in the code, even though it
>> eluded the deduction abilities of the robot that reported the false
>> positive).
>>
>> Fixes: bdf200a5535
>> Signed-off-by: Eric Blake <eblake@redhat.com>
>> ---
>>
>> It's never fun when a regression is caused by a patch taken through
>> qemu-trivial, proving that the patch was not trivial after all.
> 
> Do you want this one be merged using the trivial branch?

Up to you; I'm also fine taking it through my NBD tree as I have a few 
other NBD patches landing soon.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org



  reply	other threads:[~2020-02-12 12:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-06 17:38 [PATCH] nbd: Fix regression with multiple meta contexts Eric Blake
2020-02-06 17:54 ` Laurent Vivier
2020-02-12  9:24 ` Laurent Vivier
2020-02-12 12:10   ` Eric Blake [this message]
2020-02-12 12:13     ` Laurent Vivier

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=3a92e3c5-0506-6970-098b-019f9752dcc1@redhat.com \
    --to=eblake@redhat.com \
    --cc=laurent@vivier.eu \
    --cc=pannengyuan@huawei.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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).