[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/7] block: make bdrv_start_throttled_reqs return vo
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 2/7] block: make bdrv_start_throttled_reqs return void |
Date: |
Thu, 24 Mar 2016 17:39:21 +0100 |
The return value is unused and I am not sure why it would be useful.
Reviewed-by: Fam Zheng <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
block/io.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/block/io.c b/block/io.c
index cbba269..3703426 100644
--- a/block/io.c
+++ b/block/io.c
@@ -69,10 +69,8 @@ void bdrv_set_io_limits(BlockDriverState *bs,
}
}
-/* this function drain all the throttled IOs */
-static bool bdrv_start_throttled_reqs(BlockDriverState *bs)
+static void bdrv_start_throttled_reqs(BlockDriverState *bs)
{
- bool drained = false;
bool enabled = bs->io_limits_enabled;
int i;
@@ -80,13 +78,11 @@ static bool bdrv_start_throttled_reqs(BlockDriverState *bs)
for (i = 0; i < 2; i++) {
while (qemu_co_enter_next(&bs->throttled_reqs[i])) {
- drained = true;
+ ;
}
}
bs->io_limits_enabled = enabled;
-
- return drained;
}
void bdrv_io_limits_disable(BlockDriverState *bs)
--
1.8.3.1
- [Qemu-devel] [PATCH v3 0/7] bdrv_flush_io_queue removal, shared LinuxAioState, Paolo Bonzini, 2016/03/24
- [Qemu-devel] [PATCH 1/7] block: Don't disable I/O throttling on sync requests, Paolo Bonzini, 2016/03/24
- [Qemu-devel] [PATCH 2/7] block: make bdrv_start_throttled_reqs return void,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 4/7] block: introduce bdrv_no_throttling_begin/end, Paolo Bonzini, 2016/03/24
- [Qemu-devel] [PATCH 5/7] block: plug whole tree at once, introduce bdrv_io_unplugged_begin/end, Paolo Bonzini, 2016/03/24
- [Qemu-devel] [PATCH 3/7] block: move restarting of throttled reqs to block/throttle-groups.c, Paolo Bonzini, 2016/03/24
- [Qemu-devel] [PATCH 6/7] linux-aio: make it more type safe, Paolo Bonzini, 2016/03/24
- [Qemu-devel] [PATCH 7/7] linux-aio: share one LinuxAioState within an AioContext, Paolo Bonzini, 2016/03/24