[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 3/4] qmp: refactor duplicate code
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v3 3/4] qmp: refactor duplicate code |
Date: |
Tue, 2 May 2017 17:15:02 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 |
On 05/02/2017 09:29 AM, Pradeep Jagadeesh wrote:
> This patchset factor out the duplicate qmp throttle interface code
> that was present in both block and fsdev device files.
Instead of adding the duplicate code in patch 2 then cleaning it out
here, you should refactor this patch to be first (fix existing code in
blockdev.c to make use of the new interfaces), then add the new fsdev
code that uses this code right away.
>
> Signed-off-by: Pradeep Jagadeesh <address@hidden>
> ---
> blockdev.c | 53 +++----------------------------------
> fsdev/qemu-fsdev-throttle.c | 51 +-----------------------------------
> fsdev/qemu-fsdev.c | 1 -
> hmp.c | 34 ++++++++++++------------
> include/qemu/throttle-options.h | 5 ++++
> util/Makefile.objs | 1 +
> util/throttle-options.c | 58
> +++++++++++++++++++++++++++++++++++++++++
> 7 files changed, 85 insertions(+), 118 deletions(-)
> create mode 100644 util/throttle-options.c
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v3 2/4] fsdev: QMP interface for throttling, (continued)
[Qemu-devel] [PATCH v3 1/4] Throttle: Create IOThrottle structure, Pradeep Jagadeesh, 2017/05/02
[Qemu-devel] [PATCH v3 3/4] qmp: refactor duplicate code, Pradeep Jagadeesh, 2017/05/02
- Re: [Qemu-devel] [PATCH v3 3/4] qmp: refactor duplicate code,
Eric Blake <=
Re: [Qemu-devel] [PATCH v3 0/4] fsdev: qmp interface for io throttling, no-reply, 2017/05/02