diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-03-21 13:30:30 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-19 16:45:30 +0200 |
commit | 441565b2792d4ee9ee1928a8d14538be39211292 (patch) | |
tree | 1d705206c19f29bba69bf5467c73ca339d3e62b1 /block/io.c | |
parent | 27ccdd52598290f0f8b58be56e235aff7aebfaf3 (diff) | |
download | qemu-441565b2792d4ee9ee1928a8d14538be39211292.zip qemu-441565b2792d4ee9ee1928a8d14538be39211292.tar.gz qemu-441565b2792d4ee9ee1928a8d14538be39211292.tar.bz2 |
block: Move actual I/O throttling to BlockBackend
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/io.c')
-rw-r--r-- | block/io.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -1083,11 +1083,6 @@ int coroutine_fn bdrv_co_preadv(BlockDriverState *bs, flags |= BDRV_REQ_COPY_ON_READ; } - /* throttling disk I/O */ - if (bs->blk && blk_get_public(bs->blk)->throttle_state) { - throttle_group_co_io_limits_intercept(bs, bytes, false); - } - /* Align read if necessary by padding qiov */ if (offset & (align - 1)) { head_buf = qemu_blockalign(bs, align); @@ -1444,11 +1439,6 @@ int coroutine_fn bdrv_co_pwritev(BlockDriverState *bs, return ret; } - /* throttling disk I/O */ - if (bs->blk && blk_get_public(bs->blk)->throttle_state) { - throttle_group_co_io_limits_intercept(bs, bytes, true); - } - /* * Align write if necessary by performing a read-modify-write cycle. * Pad qiov with the read parts and be sure to have a tracked request not |