From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Andrey Korolyov <andrey@xdel.ru>,
Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: [Qemu-devel] [PATCH 2/2] virtio-blk: allow block_resize with dataplane
Date: Mon, 18 Aug 2014 14:52:29 +0100 [thread overview]
Message-ID: <1408369949-3128-3-git-send-email-stefanha@redhat.com> (raw)
In-Reply-To: <1408369949-3128-1-git-send-email-stefanha@redhat.com>
Now that block_resize acquires the AioContext we can safely allow
resizing the disk.
Reported-by: Andrey Korolyov <andrey@xdel.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
hw/block/dataplane/virtio-blk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c
index d6ba65c..b042caf 100644
--- a/hw/block/dataplane/virtio-blk.c
+++ b/hw/block/dataplane/virtio-blk.c
@@ -192,6 +192,7 @@ void virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *blk,
error_setg(&s->blocker, "block device is in use by data plane");
bdrv_op_block_all(blk->conf.bs, s->blocker);
+ bdrv_op_unblock(blk->conf.bs, BLOCK_OP_TYPE_RESIZE, s->blocker);
*dataplane = s;
}
--
1.9.3
next prev parent reply other threads:[~2014-08-18 13:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-18 13:52 [Qemu-devel] [PATCH 0/2] block: support block_resize with dataplane Stefan Hajnoczi
2014-08-18 13:52 ` [Qemu-devel] [PATCH 1/2] block: acquire AioContext in qmp_block_resize() Stefan Hajnoczi
2014-08-18 15:54 ` Max Reitz
2014-08-18 13:52 ` Stefan Hajnoczi [this message]
2014-08-18 15:54 ` [Qemu-devel] [PATCH 2/2] virtio-blk: allow block_resize with dataplane Max Reitz
2014-08-20 9:54 ` [Qemu-devel] [PATCH 0/2] block: support " Kevin Wolf
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=1408369949-3128-3-git-send-email-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=andrey@xdel.ru \
--cc=kwolf@redhat.com \
--cc=mreitz@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).