[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v13 3/6] qmp: factor out throttle code to reuse
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-devel] [PATCH v13 3/6] qmp: factor out throttle code to reuse code |
Date: |
Fri, 13 Oct 2017 16:29:08 +0200 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Mon 02 Oct 2017 04:33:29 PM CEST, Pradeep Jagadeesh wrote:
> - if (arg->has_iops_rd_max_length) {
> - cfg.buckets[THROTTLE_OPS_READ].burst_length =
> arg->iops_rd_max_length;
> - }
> - if (arg->has_iops_wr_max_length) {
> - cfg.buckets[THROTTLE_OPS_WRITE].burst_length =
> arg->iops_wr_max_length;
> - }
> -
> - if (arg->has_iops_size) {
> - cfg.op_size = arg->iops_size;
> - }
The old code takes an empty ThrottleConfig, and initializes it using the
values from a BlockIOThrottle structure...
> + tlimit = qapi_BlockIOThrottle_base(arg);
> + throttle_config_to_limits(&cfg, tlimit);
...but the new code does the exact opposite (?).
Berto
- [Qemu-devel] [PATCH v13 0/6] fsdev: qmp interface for io throttling, Pradeep Jagadeesh, 2017/10/02
- [Qemu-devel] [PATCH v13 1/6] throttle: factor out duplicate code, Pradeep Jagadeesh, 2017/10/02
- [Qemu-devel] [PATCH v13 3/6] qmp: factor out throttle code to reuse code, Pradeep Jagadeesh, 2017/10/02
- Re: [Qemu-devel] [PATCH v13 3/6] qmp: factor out throttle code to reuse code,
Alberto Garcia <=
- [Qemu-devel] [PATCH v13 6/6] fsdev: hmp interface for throttling, Pradeep Jagadeesh, 2017/10/02
- [Qemu-devel] [PATCH v13 2/6] qmp: Use ThrottleLimits structure, Pradeep Jagadeesh, 2017/10/02
- [Qemu-devel] [PATCH v13 4/6] hmp: create a throttle initialization function for code reuse, Pradeep Jagadeesh, 2017/10/02
- [Qemu-devel] [PATCH v13 5/6] fsdev: QMP interface for throttling, Pradeep Jagadeesh, 2017/10/02
- Re: [Qemu-devel] [PATCH v13 0/6] fsdev: qmp interface for io throttling, no-reply, 2017/10/02