From: Kevin Wolf <kwolf@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] dataplane: fix virtio_blk_data_plane_create() op blocker error path
Date: Thu, 11 Sep 2014 16:22:13 +0200 [thread overview]
Message-ID: <20140911142213.GE3891@noname.redhat.com> (raw)
In-Reply-To: <1410439779-20402-1-git-send-email-stefanha@redhat.com>
Am 11.09.2014 um 14:49 hat Stefan Hajnoczi geschrieben:
> Commit 3718d8ab65f68de2acccbe6a315907805f54e3cc ("block: Replace in_use
> with operation blocker") broke the error path because it consumed
> local_err instead of propagating it.
>
> The caller has no way to know that the function failed. This caused
> virtio-blk to start "successfully" even though there was a fatal
> dataplane error.
>
> Steps to reproduce:
>
> $ qemu-system-x86_64 -enable-kvm -object iothread,id=iothread0 \
> -drive if=none,id=drive0,file=a.img \
> (qemu) drive_mirror drive0 /tmp/foo.img
> (qemu) device_add virtio-blk-pci,iothread=iothread0,drive=drive0
>
> Expected result:
>
> Since the mirror block job is using drive0 it is not possible to start
> virtio-blk data-plane.
>
> device_add fails and the PCI adapter is not added.
>
> Actual result:
>
> device_add completes and the PCI adapter is added.
>
> Cc: Fam Zheng <famz@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Thanks, applied to the block branch.
Kevin
prev parent reply other threads:[~2014-09-11 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 12:49 [Qemu-devel] [PATCH] dataplane: fix virtio_blk_data_plane_create() op blocker error path Stefan Hajnoczi
2014-09-11 13:03 ` Eric Blake
2014-09-11 14:22 ` 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=20140911142213.GE3891@noname.redhat.com \
--to=kwolf@redhat.com \
--cc=famz@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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.