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] [linux-2.6.18-xen] [IA64] Move vfree() out of irq disabl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] [IA64] Move vfree() out of irq disabled code.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 Sep 2007 15:31:07 -0700
Delivery-date: Tue, 11 Sep 2007 15:35:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 Alex Williamson <alex.williamson@xxxxxx>
# Date 1189091393 21600
# Node ID 438379d47b24feb72cdd7457f377358d828d1c2a
# Parent  df2d73ab847a0766f016981704e04fb0a15819de
[IA64] Move vfree() out of irq disabled code.

Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>
---
 arch/ia64/kernel/salinfo.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)

diff -r df2d73ab847a -r 438379d47b24 arch/ia64/kernel/salinfo.c
--- a/arch/ia64/kernel/salinfo.c        Tue Aug 28 12:44:22 2007 -0600
+++ b/arch/ia64/kernel/salinfo.c        Thu Sep 06 09:09:53 2007 -0600
@@ -408,6 +408,7 @@ salinfo_log_release(struct inode *inode,
 #ifdef CONFIG_XEN
                if (is_running_on_xen()) {
                        struct list_head *pos, *n;
+                       ia64_mca_xencomm_t *found_entry = NULL;
                        unsigned long flags;
 
                        spin_lock_irqsave(&ia64_mca_xencomm_lock, flags);
@@ -417,10 +418,15 @@ salinfo_log_release(struct inode *inode,
                                entry = list_entry(pos, ia64_mca_xencomm_t, 
list);
                                if (entry->record == data->log_buffer) {
                                        list_del(&entry->list);
-                                       vfree(entry);
+                                       found_entry = entry;
+                                       break;
                                }
                        }
                        spin_unlock_irqrestore(&ia64_mca_xencomm_lock, flags);
+                       if (found_entry) {
+                               xencomm_free(found_entry->handle);
+                               vfree(found_entry);
+                       }
                }
 #endif
                vfree(data->log_buffer);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] [IA64] Move vfree() out of irq disabled code., Xen patchbot-linux-2.6.18-xen <=