Re: [Qemu-block] [PATCH v2 3/3] block-backend: Queue requests while drained

2019-08-07 Thread Max Reitz
On 07.08.19 16:46, Kevin Wolf wrote: > This fixes devices like IDE that can still start new requests from I/O > handlers in the CPU thread while the block backend is drained. > > The basic assumption is that in a drain section, no new requests should > be allowed through a BlockBackend

[Qemu-block] [PATCH v2 3/3] block-backend: Queue requests while drained

2019-08-07 Thread Kevin Wolf
This fixes devices like IDE that can still start new requests from I/O handlers in the CPU thread while the block backend is drained. The basic assumption is that in a drain section, no new requests should be allowed through a BlockBackend (blk_drained_begin/end don't exist, we get drain sections