[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.4] make rangeset_report_ranges() report all ranges



commit 1eda7e5aa0634df8e11c68a0593c38b78100c615
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Jul 21 11:19:20 2015 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jul 21 11:19:20 2015 +0200

    make rangeset_report_ranges() report all ranges
    
    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), or else
    no range gets reported at all in that case.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
    master commit: b1c780cd315eb4db06be3bbb5c6d80b1cabd27a9
    master date: 2015-07-15 16:11:42 +0200
---
 xen/common/rangeset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xen/common/rangeset.c b/xen/common/rangeset.c
index f09c0c4..e205519 100644
--- a/xen/common/rangeset.c
+++ b/xen/common/rangeset.c
@@ -268,7 +268,7 @@ int rangeset_report_ranges(
 
     spin_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);
 
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.4

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.