From: Ian Campbell <ian.campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
Keir Fraser <keir@xen.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>
Subject: Re: [PATCH] make rangeset_report_ranges() report all ranges
Date: Wed, 15 Jul 2015 14:43:33 +0100 [thread overview]
Message-ID: <1436967813.32371.73.camel@citrix.com> (raw)
In-Reply-To: <55A67702020000780009157E@mail.emea.novell.com>
On Wed, 2015-07-15 at 14:06 +0100, Jan Beulich wrote:
> find_range() returns NULL when s is below the lowest range, so we have
> to use first_range() here (which is as good performance wise).
The bug here was that the first range would be omitted under certain
conditions? Saying which here would be interesting.
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
> --- a/xen/common/rangeset.c
> +++ b/xen/common/rangeset.c
> @@ -289,7 +289,7 @@ int rangeset_report_ranges(
>
> read_lock(&r->lock);
>
> - for ( x = find_range(r, s); x && (x->s <= e) && !rc; x = next_range(r, x) )
> + for ( x = first_range(r); x && (x->s <= e) && !rc; x = next_range(r, x) )
> if ( x->e >= s )
> rc = cb(max(x->s, s), min(x->e, e), ctxt);
>
>
>
>
next prev parent reply other threads:[~2015-07-15 13:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 13:06 [PATCH] make rangeset_report_ranges() report all ranges Jan Beulich
2015-07-15 13:43 ` Ian Campbell [this message]
2015-07-15 13:55 ` Jan Beulich
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=1436967813.32371.73.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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.