[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 2/9] block: add BlockJob interface for long-r
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v3 2/9] block: add BlockJob interface for long-running operations |
Date: |
Thu, 15 Dec 2011 08:50:57 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Dec 14, 2011 at 02:51:47PM +0100, Kevin Wolf wrote:
> Am 13.12.2011 14:52, schrieb Stefan Hajnoczi:
> > Signed-off-by: Stefan Hajnoczi <address@hidden>
> > ---
> > block_int.h | 83
> > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > 1 files changed, 83 insertions(+), 0 deletions(-)
>
> Why are these functions static inline in the header instead of being
> implemented in block.c?
You are right, they should be moved.
> The other thing I was going to ask, but don't really know to which patch
> I should reply, is whether we need to take care of bdrv_close/delete
> while a block job is still running. What happens if you unplug a device
> that is being streamed?
Hotplug is protected by the bdrv_set_in_use() we issue during block job
creation/completion.
The 'change', 'resize', and 'snapshot_blkdev' operations are not
protected AFAICT. I'll take a close look at them and send patches.
Stefan
- [Qemu-devel] [PATCH v3 4/9] block: rate-limit streaming operations, (continued)
- [Qemu-devel] [PATCH v3 4/9] block: rate-limit streaming operations, Stefan Hajnoczi, 2011/12/13
- [Qemu-devel] [PATCH v3 6/9] qmp: add block_job_set_speed command, Stefan Hajnoczi, 2011/12/13
- [Qemu-devel] [PATCH v3 5/9] qmp: add block_stream command, Stefan Hajnoczi, 2011/12/13
- [Qemu-devel] [PATCH v3 9/9] test: add image streaming test cases, Stefan Hajnoczi, 2011/12/13
- [Qemu-devel] [PATCH v3 3/9] block: add image streaming block job, Stefan Hajnoczi, 2011/12/13
- [Qemu-devel] [PATCH v3 2/9] block: add BlockJob interface for long-running operations, Stefan Hajnoczi, 2011/12/13
- [Qemu-devel] [PATCH v3 7/9] qmp: add block_job_cancel command, Stefan Hajnoczi, 2011/12/13
- Re: [Qemu-devel] [PATCH v3 0/9] block: generic image streaming, Yibin Shen, 2011/12/13