On Fri, Mar 21, 2025 at 03:09:17PM +0800, zoudongjie wrote: > From: Zhu Yangyang <zhuyangyan...@huawei.com> > > Calling qmp_block_set_io_throttle() will be blocked for a long time > when a network disk is configured and the network failure is just about > to occur. > > Therefore, we add a timeout parameter for qmp_block_set_io_throttle to control > its execution duration. > > The default value of timeout is 0, that is infinite wait, consistent with > previous behavior. > > Signed-off-by: Zhu Yangyang <zhuyangyan...@huawei.com> > --- > block/block-backend.c | 14 +++++++++++++- > block/qapi-system.c | 10 +++++++++- > include/system/block-backend-global-state.h | 1 + > qapi/block-core.json | 5 ++++- > 4 files changed, 27 insertions(+), 3 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature