summaryrefslogtreecommitdiff
path: root/block/io.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-03-08 13:47:49 +0100
committerKevin Wolf <kwolf@redhat.com>2016-03-17 15:47:57 +0100
commit5bd51196676b07d3f9ddb3086057b0d82ae95f36 (patch)
tree389847d00f4d8d0c770c148ba485d7e35d10c7e8 /block/io.c
parenta8823a3bfd8a8adfa11dea61b151175a02caa7d0 (diff)
downloadqemu-5bd51196676b07d3f9ddb3086057b0d82ae95f36.tar.gz
block: Pull up blk_read_unthrottled() implementation
Use blk_read(), so that it goes through blk_co_preadv() like all read requests from the BB to the BDS. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/io.c')
-rw-r--r--block/io.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/block/io.c b/block/io.c
index aa8537ce2e..41d954cad2 100644
--- a/block/io.c
+++ b/block/io.c
@@ -615,20 +615,6 @@ int bdrv_read(BlockDriverState *bs, int64_t sector_num,
return bdrv_rw_co(bs, sector_num, buf, nb_sectors, false, 0);
}
-/* Just like bdrv_read(), but with I/O throttling temporarily disabled */
-int bdrv_read_unthrottled(BlockDriverState *bs, int64_t sector_num,
- uint8_t *buf, int nb_sectors)
-{
- bool enabled;
- int ret;
-
- enabled = bs->io_limits_enabled;
- bs->io_limits_enabled = false;
- ret = bdrv_read(bs, sector_num, buf, nb_sectors);
- bs->io_limits_enabled = enabled;
- return ret;
-}
-
/* Return < 0 if error. Important errors are:
-EIO generic I/O error (may happen for all errors)
-ENOMEDIUM No media inserted.