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-changelog

[Xen-changelog] [xen-unstable] tmem: fix minor accounting error

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tmem: fix minor accounting error
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Jun 2009 00:55:14 -0700
Delivery-date: Fri, 19 Jun 2009 00:55:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245147512 -3600
# Node ID f649dd4454af51d104098af918ef9aa1e1835172
# Parent  8373971089a7342bbd76e33124887e977095ef09
tmem: fix minor accounting error

Reset a counter when all tmem pages are released.  This
only affects status reporting (as displayed by xm tmem-list
or the just patched xenballoon-monitor) but the incorrectly
reported result is misleading.

Signed-off-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
---
 xen/common/tmem_xen.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 8373971089a7 -r f649dd4454af xen/common/tmem_xen.c
--- a/xen/common/tmem_xen.c     Tue Jun 16 11:17:28 2009 +0100
+++ b/xen/common/tmem_xen.c     Tue Jun 16 11:18:32 2009 +0100
@@ -202,6 +202,7 @@ EXPORT void tmh_release_avail_pages_to_h
     {
         scrub_list_splice(&tmh_page_list);
         INIT_PAGE_LIST_HEAD(&tmh_page_list);
+        tmh_page_list_pages = 0;
     }
     spin_unlock(&tmh_page_list_lock);
 }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tmem: fix minor accounting error, Xen patchbot-unstable <=