Re: [Qemu-block] [PATCH v2 13/13] block: Don't check throttled reqs in bdrv_requests_pending()

2016-05-11 Thread Kevin Wolf
Am 10.05.2016 um 14:20 hat Alberto Garcia geschrieben: > On Fri 22 Apr 2016 07:42:42 PM CEST, Kevin Wolf wrote: > > Checking whether there are throttled requests requires going to the > > associated BlockBackend, which we want to avoid. All users of > > bdrv_requests_pending() already call

Re: [Qemu-block] [PATCH v2 13/13] block: Don't check throttled reqs in bdrv_requests_pending()

2016-05-10 Thread Alberto Garcia
On Fri 22 Apr 2016 07:42:42 PM CEST, Kevin Wolf wrote: > Checking whether there are throttled requests requires going to the > associated BlockBackend, which we want to avoid. All users of > bdrv_requests_pending() already call bdrv_parent_drained_begin() > first, There's a couple of

[Qemu-block] [PATCH v2 13/13] block: Don't check throttled reqs in bdrv_requests_pending()

2016-04-22 Thread Kevin Wolf
Checking whether there are throttled requests requires going to the associated BlockBackend, which we want to avoid. All users of bdrv_requests_pending() already call bdrv_parent_drained_begin() first, which restarts all throttled requests, so no throttled requests can be left here and this is