qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [Qemu-devel] [PATCH v2 01/11] block: Add op blocker typ


From: Fam Zheng
Subject: Re: [Qemu-block] [Qemu-devel] [PATCH v2 01/11] block: Add op blocker type "device IO"
Date: Thu, 14 May 2015 10:40:59 +0800
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, 05/13 17:09, Paolo Bonzini wrote:
> 
> 
> On 13/05/2015 17:02, Fam Zheng wrote:
> >> > For example, SCSI requests can result in many consecutive I/Os:
> >> > 
> >> > (1) FUA requests are split in write+flush
> >> > 
> >> > (2) adapters that do not use QEMUSGList-based I/O only read 128K at a 
> >> > time
> >> > 
> >> > (3) WRITE SAME operations are also split in chunks
> >> > 
> >> > (4) UNMAP operations process one descriptor at a time
> > I don't understand the point of these examples. If we don't return -EBUSY 
> > here,
> > the request will sneak into block/io.c and perhaps break qmp transaction
> > semantics, if it lands between two backups.
> 
> It won't, because after blocking DEVICE_IO you will always drain I/O and
> the bdrv_drain will loop until the above are all satisfied.

That's right, I'll drop this patch.

Fam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]