Re: [Qemu-block] [PATCH v2 09/13] block: Drain throttling queue with BdrvChild callback

2016-05-06 Thread Alberto Garcia
On Fri 22 Apr 2016 07:42:38 PM CEST, Kevin Wolf wrote: > This removes the last part of I/O throttling from block/io.c and moves > it to the BlockBackend. > > Instead of having knowledge about throttling inside io.c, we can call a > BdrvChild callback .drained_begin/end, which happens to drain the

[Qemu-block] [PATCH v2 09/13] block: Drain throttling queue with BdrvChild callback

2016-04-22 Thread Kevin Wolf
This removes the last part of I/O throttling from block/io.c and moves it to the BlockBackend. Instead of having knowledge about throttling inside io.c, we can call a BdrvChild callback .drained_begin/end, which happens to drain the throttled requests for BlockBackend parents. Signed-off-by: