• K
    block: Don't check throttled reqs in bdrv_requests_pending() · cbe1beb7
    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() 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: NKevin Wolf <kwolf@redhat.com>
    Acked-by: NStefan Hajnoczi <stefanha@redhat.com>
    cbe1beb7
io.c 80.5 KB