qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kurz <groug@kaod.org>
To: Eric Blake <eblake@redhat.com>
Cc: Pradeep Jagadeesh <pradeepkiruvale@gmail.com>,
	Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>,
	alberto garcia <berto@igalia.com>,
	jani kokkonen <jani.kokkonen@huawei.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 3/4] qmp: refactor duplicate code
Date: Wed, 3 May 2017 19:21:26 +0200	[thread overview]
Message-ID: <20170503192126.0d4964a9@bahia> (raw)
In-Reply-To: <c3224a61-cc45-c419-6aff-a3cc43ffed80@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1734 bytes --]

On Tue, 2 May 2017 17:15:02 -0500
Eric Blake <eblake@redhat.com> wrote:

> 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.
> 

Yeah I second that.

Pradeep,

When you worked on the command line version for 2.9, I didn't really know
what we would be able to share between fsdev and blockdev... I had hence
asked to code it separately and then factor out. The situation is different
here: the core throttling code is in place for both fsdev and blockdev. We
really want to share as much code as possible. So you probably should move
this patch and maybe the next one in front and then have fsdev to use the
new code as Eric is suggesting.

Cheers,

--
Greg

> > 
> > Signed-off-by: Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>
> > ---
> >  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
> >   
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  reply	other threads:[~2017-05-03 17:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-02 14:29 [Qemu-devel] [PATCH v3 0/4] fsdev: qmp interface for io throttling Pradeep Jagadeesh
2017-05-02 14:29 ` [Qemu-devel] [PATCH v3 1/4] Throttle: Create IOThrottle structure Pradeep Jagadeesh
2017-05-02 21:56   ` Eric Blake
2017-05-03  6:22   ` Greg Kurz
2017-05-03 14:19     ` Pradeep Jagadeesh
2017-05-03 17:10       ` Greg Kurz
2017-05-02 14:29 ` [Qemu-devel] [PATCH v3 2/4] fsdev: QMP interface for throttling Pradeep Jagadeesh
2017-05-02 22:13   ` Eric Blake
2017-05-03 15:40     ` Pradeep Jagadeesh
2017-05-03 16:32       ` Eric Blake
2017-05-04 15:12         ` Pradeep Jagadeesh
2017-05-04 15:19           ` Eric Blake
2017-05-05 11:09             ` Pradeep Jagadeesh
2017-05-02 14:29 ` [Qemu-devel] [PATCH v3 3/4] qmp: refactor duplicate code Pradeep Jagadeesh
2017-05-02 22:15   ` Eric Blake
2017-05-03 17:21     ` Greg Kurz [this message]
2017-05-04  9:44       ` Pradeep Jagadeesh
2017-05-02 14:29 ` [Qemu-devel] [PATCH v3 4/4] throttle: factor out " Pradeep Jagadeesh
2017-05-02 15:03 ` [Qemu-devel] [PATCH v3 0/4] fsdev: qmp interface for io throttling no-reply

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=20170503192126.0d4964a9@bahia \
    --to=groug@kaod.org \
    --cc=berto@igalia.com \
    --cc=eblake@redhat.com \
    --cc=jani.kokkonen@huawei.com \
    --cc=pradeep.jagadeesh@huawei.com \
    --cc=pradeepkiruvale@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).