block: Don't check throttled reqs in bdrv_requests_pending()
authorKevin Wolf <kwolf@redhat.com>
Tue, 22 Mar 2016 15:11:33 +0000 (16:11 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2016 14:45:31 +0000 (16:45 +0200)
commitcbe1beb7a1eaa34e0c24b4897395dac017e5d16f
tree9ce2964467fcfb23c0c9b48a625b345d8ae14533
parentb26ded9a7d9709aacdff36e39630acbb87201057
block: Don't check throttled reqs in bdrv_requests_pending()

Checking whether there are throttled requests requires going to the
associated BlockBackend, which we want to avoid.

All users of bdrv_requests_pending() in block/io.c already call
bdrv_parent_drained_begin() first, which restarts all throttled
requests, so no throttled requests can be left here and this is removal
of dead code.

The remaining users (assertions during graph manipulation in block.c)
don't care about requests that are still queued in the BlockBackend and
haven't been issued for a BlockDriverState yet.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c