From: Markus Armbruster <armbru@redhat.com>
To: zoudongjie <zoudongjie@huawei.com>
Cc: <alex.chen@huawei.com>, <chenjianfei3@huawei.com>,
<eric.fangyi@huawei.com>, <fam@euphon.net>, <hreitz@redhat.com>,
<kwolf@redhat.com>, <luolongmin@huawei.com>,
<mujinsheng@huawei.com>, <qemu-block@nongnu.org>,
<qemu-devel@nongnu.org>, <qemu-stable@nongnu.org>,
<renxuming@huawei.com>, <stefanha@redhat.com>,
<suxiaodong1@huawei.com>, <wangjian161@huawei.com>,
<wangyan122@huawei.com>, <yebiaoxiang@huawei.com>,
<zhuyangyang14@huawei.com>
Subject: Re: [PATCH v3 2/2] qapi/throttle: add timeout parameter for qmp_block_set_io_throttle()
Date: Thu, 27 Mar 2025 14:43:54 +0100 [thread overview]
Message-ID: <8734eytwpx.fsf@pond.sub.org> (raw)
In-Reply-To: <20250327123443.2250580-1-zoudongjie@huawei.com> (zoudongjie@huawei.com's message of "Thu, 27 Mar 2025 20:34:43 +0800")
zoudongjie <zoudongjie@huawei.com> writes:
> On Thu, 27 Mar 2025 09:04:51 +0100, Markus wrote:
>> zoudongjie <zoudongjie@huawei.com> writes:
>>
>> > On Wed, Mar 26, 2025 at 10:53:20 +0100, Markus wrote:
>> >> zoudongjie via <qemu-devel@nongnu.org> writes:
>> >>
>> >> > From: Zhu Yangyang <zhuyangyang14@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.
>>
>> What other commands could similarly block?
>
> In theory, any command may be blocked if it calls bdrv_drained_begin().
> I did a quick check, qmp_block_resize() could similarly block, since it called
> bdrv_drained_begin(), I'm going to verify it later.
Please do.
Should all these commands support time out?
>> >> > Therefore, we add a timeout parameter for qmp_block_set_io_throttle to control
>> >> > its execution duration.
>> >>
>> >> What's the QMP reply when a block_set_io_throttle command times out?
>> >
>> > The reply is:
>> > {"id":"libvirt-484","error":{"class":"GenericError","desc":"Blk io limits disable timeout"}}
>>
>> I find the error message confusing. Suggest "command timed out".
>
> This message doesn't provide more details about the error, especially for developers.
> How about using "command timed out: disable I/O limits"
I don't get what "disable I/O limits" is trying to tell the user. Can
you explain?
>> >> > The default value of timeout is 0, that is infinite wait, consistent with
>> >> > previous behavior.
>> >> >
>> >> > Signed-off-by: Zhu Yangyang <zhuyangyang14@huawei.com>
>>
>> [...]
next prev parent reply other threads:[~2025-03-27 13:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-26 9:26 [PATCH v3 0/2] qapi/throttle: Fix qmp_block_set_io_throttle blocked for too long zoudongjie via
2025-03-26 9:26 ` [PATCH v3 1/2] io/block: Refactoring the bdrv_drained_begin() function and implement a timeout mechanism zoudongjie via
2025-03-26 9:26 ` [PATCH v3 2/2] qapi/throttle: add timeout parameter for qmp_block_set_io_throttle() zoudongjie via
2025-03-26 9:53 ` Markus Armbruster
2025-03-27 7:56 ` zoudongjie via
2025-03-27 8:04 ` Markus Armbruster
2025-03-27 12:34 ` zoudongjie via
2025-03-27 13:43 ` Markus Armbruster [this message]
2025-04-01 8:15 ` zoudongjie via
2025-04-01 7:21 ` zoudongjie via
2025-03-26 15:06 ` [PATCH v3 0/2] qapi/throttle: Fix qmp_block_set_io_throttle blocked for too long Stefan Hajnoczi
2025-05-12 9:40 ` Michael Tokarev
2025-05-12 10:31 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734eytwpx.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=alex.chen@huawei.com \
--cc=chenjianfei3@huawei.com \
--cc=eric.fangyi@huawei.com \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=luolongmin@huawei.com \
--cc=mujinsheng@huawei.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=renxuming@huawei.com \
--cc=stefanha@redhat.com \
--cc=suxiaodong1@huawei.com \
--cc=wangjian161@huawei.com \
--cc=wangyan122@huawei.com \
--cc=yebiaoxiang@huawei.com \
--cc=zhuyangyang14@huawei.com \
--cc=zoudongjie@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.