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] [PATCH][linux-2.6.18-xen.hg]

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][linux-2.6.18-xen.hg]
From: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
Date: Thu, 26 Jul 2007 11:14:44 -0400
Delivery-date: Thu, 26 Jul 2007 08:16:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.4 (X11/20070615)
This patch makes the code adding PF_NOFREEZE conditional on the kernel version.
PF_NOFREEZE first showed up in 2.6.6-rc2

This allows the xenbus code to continue to compile against kernels pre 2.6.6 - like SLES9 (2.6.5)

Patch: linux-xenbus-legacy.patch
Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>


diff -r d2451033c8df drivers/xen/xenbus/xenbus_xs.c
--- a/drivers/xen/xenbus/xenbus_xs.c    Wed Jul 25 14:59:21 2007 -0400
+++ b/drivers/xen/xenbus/xenbus_xs.c    Thu Jul 26 09:24:08 2007 -0400
@@ -717,8 +717,10 @@ static int xenwatch_thread(void *unused)
 {
        struct list_head *ent;
        struct xs_stored_msg *msg;
-
+        
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6)       
        current->flags |= PF_NOFREEZE;
+#endif
        for (;;) {
                wait_event_interruptible(watch_events_waitq,
                                         !list_empty(&watch_events));
@@ -837,7 +839,9 @@ static int xenbus_thread(void *unused)
 {
        int err;
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6)  
        current->flags |= PF_NOFREEZE;
+#endif
        for (;;) {
                err = process_msg();
                if (err)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][linux-2.6.18-xen.hg], Ben Guthro <=