From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Guthro Subject: [PATCH][linux-2.6.18-xen.hg] Date: Thu, 26 Jul 2007 11:14:44 -0400 Message-ID: <46A8BA64.7020609@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040702050409010502090800" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------040702050409010502090800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------040702050409010502090800 Content-Type: text/x-patch; name="linux-xenbus-legacy.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="linux-xenbus-legacy.patch" 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) --------------040702050409010502090800 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------040702050409010502090800--