WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] linux/balloon: Fix hugepage-related bugs

To: "Jeremy Fitzhardinge" <jeremy@xxxxxxxx>, "Dave McCracken" <dcm@xxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] linux/balloon: Fix hugepage-related bugs
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 22 Dec 2009 07:55:38 +0000
Cc: Xen Developers List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 21 Dec 2009 23:55:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20091221195052.17678.32248.sendpatchset@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20091221195052.17678.32248.sendpatchset@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Acked-by: Jan Beulich <jbeulich@xxxxxxxxxx>

>>> Dave McCracken <dcm@xxxxxxxx> 21.12.09 20:50 >>>
>@@ -595,7 +600,7 @@ void free_empty_pages_and_pagevec(struct
>       npages = (nr_pages + (balloon_npages-1)) >> balloon_order;
> 
>       mutex_lock(&balloon_mutex);
>-      for (i = 0; i < nr_pages; i++) {
>+      for (i = 0; i < npages; i++) {
>               page = pagevec[i << balloon_order];
>               BUG_ON(page_count(page) != 1);

Wouldn't it be reasonable to also extend this check to all constituent
pages?

>               balloon_append(page);

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>