From: George Dunlap <george.dunlap@eu.citrix.com>
To: Paul Durrant <Paul.Durrant@citrix.com>,
George Dunlap <dunlapg@umich.edu>
Cc: George Dunlap <George.Dunlap@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH v3 2/6] ioreq-server: tidy up use of ioreq_t
Date: Mon, 10 Mar 2014 16:56:22 +0000 [thread overview]
Message-ID: <531DEEB6.1020503@eu.citrix.com> (raw)
In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD027E7A4@AMSPEX01CL01.citrite.net>
On 03/10/2014 04:04 PM, Paul Durrant wrote:
>> -----Original Message-----
>> From: dunlapg@gmail.com [mailto:dunlapg@gmail.com] On Behalf Of
>> George Dunlap
>> Sent: 10 March 2014 15:53
>> To: Paul Durrant
>> Cc: George Dunlap; xen-devel@lists.xen.org
>> Subject: Re: [Xen-devel] [PATCH v3 2/6] ioreq-server: tidy up use of ioreq_t
>>
>> On Mon, Mar 10, 2014 at 3:46 PM, Paul Durrant <Paul.Durrant@citrix.com>
>> wrote:
>>>> -----Original Message-----
>>>> From: dunlapg@gmail.com [mailto:dunlapg@gmail.com] On Behalf Of
>>>> George Dunlap
>>>> Sent: 10 March 2014 15:43
>>>> To: Paul Durrant
>>>> Cc: xen-devel@lists.xen.org
>>>> Subject: Re: [Xen-devel] [PATCH v3 2/6] ioreq-server: tidy up use of
>> ioreq_t
>>>> On Wed, Mar 5, 2014 at 2:47 PM, Paul Durrant <paul.durrant@citrix.com>
>>>> wrote:
>>>>> This patch tidies up various occurences of single element ioreq_t
>>>>> arrays on the stack and improves coding style.
>>>>>
>>>>> Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
>>>> Maybe I missed this in the earlier discussion, but why is most of this
>>>> not integrated into patch 1?
>>>>
>>> It was a patch that was added after the v1 RFC patch series. I wanted to
>> keep it separate to avoid making patch 1 massively different to what it was
>> before.
>>
>> Isn't the point of the review process to change patches? :-) In
>> general, both reviewers and code archaeologists (i.e., people going
>> through commits long after the fact) want as much as possible to know
>> what the end result is going to look like. Having one patch which
>> does things one way, and another immediately following it that does
>> things a different way doesn't really help anybody, as far as I can
>> tell. It only increases the amount of busy-work people have to do to
>> figure out what's going on.
>>
> Patch 2 was added to code clean up that is not critical to this patch series. IMO folding it into patch 1 obscures the original purpose of that patch. If reviewers only cared about the end result then what's purpose of patch series in the first place? May as well just fold everything into one patch.
So what you mean is, in the case of "ioreq_t p[1]" being replaced by
"ioreq_t p", patch 1 puts it on the stack and patch 2 changes p from a
pointer to a struct, and you think putting them in one patch makes it
harder to discern one from the other.
I'd still rather they be in one patch, but that might be a taste thing.
Another option might have been to have patch 1 do the code motion, and
patch 2 use the ioreq on the stack instead -- then you're not
introducing a weird construct that you're going to obliterate right
away. To do that, I guess you'd have to avoid making get_ioreq() static
to hvm.c until patch 2.
But we're getting into bike-shed territory here. I think it would be
better to change the break-down, but I won't make that a condition for
acceptance.
-George
next prev parent reply other threads:[~2014-03-10 16:56 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-05 14:47 [PATCH v3 0/6] Support for running secondary emulators Paul Durrant
2014-03-05 14:47 ` [PATCH v3 1/6] ioreq-server: centralize access to ioreq structures Paul Durrant
2014-03-05 14:47 ` [PATCH v3 2/6] ioreq-server: tidy up use of ioreq_t Paul Durrant
2014-03-10 15:43 ` George Dunlap
2014-03-10 15:46 ` Paul Durrant
2014-03-10 15:53 ` George Dunlap
2014-03-10 16:04 ` Paul Durrant
2014-03-10 16:56 ` George Dunlap [this message]
2014-03-11 10:06 ` Paul Durrant
2014-03-05 14:47 ` [PATCH v3 3/6] ioreq-server: create basic ioreq server abstraction Paul Durrant
2014-03-05 14:47 ` [PATCH v3 4/6] ioreq-server: on-demand creation of ioreq server Paul Durrant
2014-03-10 17:46 ` George Dunlap
2014-03-11 10:54 ` Paul Durrant
2014-03-14 11:04 ` Ian Campbell
2014-03-14 13:28 ` Paul Durrant
2014-03-14 11:18 ` Ian Campbell
2014-03-14 13:30 ` Paul Durrant
2014-03-05 14:48 ` [PATCH v3 5/6] ioreq-server: add support for multiple servers Paul Durrant
2014-03-14 11:52 ` Ian Campbell
2014-03-17 11:45 ` George Dunlap
2014-03-17 12:25 ` Paul Durrant
2014-03-17 12:35 ` Ian Campbell
2014-03-17 12:51 ` Paul Durrant
2014-03-17 12:53 ` Ian Campbell
2014-03-17 13:56 ` Paul Durrant
2014-03-17 14:44 ` Ian Campbell
2014-03-17 14:52 ` Paul Durrant
2014-03-17 14:55 ` Ian Campbell
2014-03-18 11:33 ` Paul Durrant
2014-03-18 13:24 ` George Dunlap
2014-03-18 13:38 ` Paul Durrant
2014-03-18 13:45 ` Paul Durrant
2014-03-20 11:11 ` Tim Deegan
2014-03-20 11:22 ` Paul Durrant
2014-03-20 12:10 ` Paul Durrant
2014-03-05 14:48 ` [PATCH v3 6/6] ioreq-server: bring the PCI hotplug controller implementation into Xen Paul Durrant
2014-03-14 11:57 ` Ian Campbell
2014-03-14 13:25 ` Paul Durrant
2014-03-14 14:08 ` Ian Campbell
2014-03-14 14:31 ` Paul Durrant
2014-03-14 15:01 ` Ian Campbell
2014-03-14 15:18 ` Paul Durrant
2014-03-14 18:06 ` Konrad Rzeszutek Wilk
2014-03-17 11:13 ` Paul Durrant
2014-03-10 18:57 ` [PATCH v3 0/6] Support for running secondary emulators George Dunlap
2014-03-11 10:48 ` Paul Durrant
2014-03-14 11:02 ` Ian Campbell
2014-03-14 13:26 ` Paul Durrant
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=531DEEB6.1020503@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=George.Dunlap@citrix.com \
--cc=Paul.Durrant@citrix.com \
--cc=dunlapg@umich.edu \
--cc=xen-devel@lists.xen.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).