From: Dario Faggioli <dario.faggioli@citrix.com>
To: Praveen Kumar <kpraveen.lkml@gmail.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: "george.dunlap@eu.citrix.com" <george.dunlap@eu.citrix.com>
Subject: Re: [PATCH v2] xen: sched: removal of redundant check in Credit
Date: Fri, 16 Dec 2016 01:55:17 +0100 [thread overview]
Message-ID: <1481849717.3445.362.camel@citrix.com> (raw)
In-Reply-To: <1481825355.5484.4.camel@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2074 bytes --]
On Thu, 2016-12-15 at 23:39 +0530, Praveen Kumar wrote:
> The patch gets rid of a redundant check in csched_vcpu_acct. In fact,
> the function is only called from csched_tick, which already checks
> that current is not the idle vcpu. The patch also adds an ASSERT to
> the same effect, in order to make assumption ( i.e., no calling this
> on idle vcpus) even more clear and as a guard for future mis-use.
>
> Signed-off-by: Praveen Kumar <kpraveen.lkml@gmail.com>
>
This is all good and can have my:
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
_HOWEVER_ when I tried to apply the patch directly from this email I
get this:
(Stripping trailing CRs from patch; use --binary to disable.)
checking file xen/common/sched_credit.c
patch: **** malformed patch at line 6: unsigned int cpu)
Which I think means that the patch has been corrupted, most likely by
the email program.
This is a common issue, and although it is possible to paste patches in
an email client and teach it not to mangle them, I would say:
1) it's a very boring thing to do, it does not scale, it's not
practical when sending patch series and it's not reliable;
2) I've only done a couple of times at the beginning of my OS
contribution history, and would not be able to help on how to make
that happen.
For this reason, I encourage you to look at and learn alternative ways
of submitting patches, like git-send-email. Personally, I use StGit for
development, and it has its own sending patches machinery too.
I think you should send a v3, by using one of these methods (or, in
general, not in a mangled state). When doing that (and if you don't
change anything), you can stick my 'Acked-by:' tag right below your own
'Signed-off-by:'
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-12-16 0:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-15 18:09 [PATCH v2] xen: sched: removal of redundant check in Credit Praveen Kumar
2016-12-16 0:55 ` Dario Faggioli [this message]
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=1481849717.3445.362.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=kpraveen.lkml@gmail.com \
--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 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.