aboutsummaryrefslogtreecommitdiff
path: root/disas/tci.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-10-28 11:46:51 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2015-10-29 17:59:27 +0000
commit37a639a7fbc5c6b065c80e7e2de78d22af735496 (patch)
tree0e4218cd4e77bb74a5c5b5b3839766414b640a99 /disas/tci.c
parent33108e9f3388b07b7daa4e46d476ff89ce7dbec5 (diff)
downloadqemu-37a639a7fbc5c6b065c80e7e2de78d22af735496.zip
qemu-37a639a7fbc5c6b065c80e7e2de78d22af735496.tar.gz
qemu-37a639a7fbc5c6b065c80e7e2de78d22af735496.tar.bz2
block: Consider all child nodes in bdrv_requests_pending()
The function manually recursed into bs->file and bs->backing to check whether there were any requests pending, but it ignored other children. There's no need to special case file and backing here, so just replace these two explicit recursions by a loop recursing for all child nodes. Reported-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Message-id: 1446029211-27148-1-git-send-email-kwolf@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'disas/tci.c')
0 files changed, 0 insertions, 0 deletions