diff options
author | Fam Zheng | 2017-11-29 15:49:48 +0100 |
---|---|---|
committer | Kevin Wolf | 2017-12-22 15:05:31 +0100 |
commit | 8e77e0bceb4de0fe5cc912d5865b28a703f0f041 (patch) | |
tree | cd9b9f97caa6759405e9a83d4c0699711bc8766d /block/io.c | |
parent | block: Mention -drive cyls/heads/secs/trans/serial/addr in deprecation chapter (diff) | |
download | qemu-8e77e0bceb4de0fe5cc912d5865b28a703f0f041.tar.gz qemu-8e77e0bceb4de0fe5cc912d5865b28a703f0f041.tar.xz qemu-8e77e0bceb4de0fe5cc912d5865b28a703f0f041.zip |
block: Remove unused bdrv_requests_pending
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/io.c')
-rw-r--r-- | block/io.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/block/io.c b/block/io.c index 1e92d2e5b2..cf780c3cb0 100644 --- a/block/io.c +++ b/block/io.c @@ -134,24 +134,6 @@ void bdrv_disable_copy_on_read(BlockDriverState *bs) assert(old >= 1); } -/* Check if any requests are in-flight (including throttled requests) */ -bool bdrv_requests_pending(BlockDriverState *bs) -{ - BdrvChild *child; - - if (atomic_read(&bs->in_flight)) { - return true; - } - - QLIST_FOREACH(child, &bs->children, next) { - if (bdrv_requests_pending(child->bs)) { - return true; - } - } - - return false; -} - typedef struct { Coroutine *co; BlockDriverState *bs; |