[OpenAFS] 1.3.79 on RHEL4?

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Mon, 28 Feb 2005 11:07:14 -0500


In message <Pine.LNX.4.61.0502281351590.22360@arwen.ifh.de>,Stephan Wiesand wri
tes:
>[root@tsl4 ~]# grep -i preempt /lib/modules/2.6.9-5.0.3.EL/build/.config
># CONFIG_PREEMPT is not set
>CONFIG_PREEMPT_VOLUNTARY=y

CONFIG_PREEMPT_VOLUNTARY means you get some preemption.  just to test
this theory that its preempt, can you try this patch with a up kernel:

Index: src/afs/LINUX/osi_machdep.h
===================================================================
RCS file: /cvs/openafs/src/afs/LINUX/osi_machdep.h,v
retrieving revision 1.24
diff -u -u -r1.24 osi_machdep.h
--- src/afs/LINUX/osi_machdep.h	14 Jan 2005 17:36:40 -0000	1.24
+++ src/afs/LINUX/osi_machdep.h	28 Feb 2005 16:06:27 -0000
@@ -193,7 +193,7 @@
 /* function to help with the page offset stuff */
 #define afs_linux_page_address(page) (afs_linux_page_offset + PAGE_SIZE * (page - mem_map))
 
-#if defined(__KERNEL__) && defined(CONFIG_SMP)
+#if 1
 #include "../h/sched.h"
 #include "linux/wait.h"
 
@@ -24,7 +24,7 @@
 #define	AFS_GLOBAL_RXLOCK_KERNEL 1
 
 
-#ifdef CONFIG_SMP
+#if 1
 #define RX_ENABLE_LOCKS 1
 
 #ifndef _LINUX_CODA_FS_I