Index: /server/common/patches/openafs-2.6.27.patch
===================================================================
--- /server/common/patches/openafs-2.6.27.patch	(revision 904)
+++ /server/common/patches/openafs-2.6.27.patch	(revision 904)
@@ -0,0 +1,58 @@
+Index: acinclude.m4
+===================================================================
+RCS file: /cvs/openafs/acinclude.m4,v
+retrieving revision 1.114.2.103
+diff -u -r1.114.2.103 acinclude.m4
+--- acinclude.m4	11 Jul 2008 09:54:35 -0000	1.114.2.103
++++ acinclude.m4	12 Aug 2008 19:45:27 -0000
+@@ -608,6 +608,7 @@
+ 		 LINUX_KMEM_CACHE_CREATE_TAKES_DTOR
+ 		 LINUX_CONFIG_H_EXISTS
+ 		 LINUX_COMPLETION_H_EXISTS
++		 LINUX_SEMAPHORE_H_EXISTS
+ 		 LINUX_DEFINES_FOR_EACH_PROCESS
+ 		 LINUX_DEFINES_PREV_TASK
+ 		 LINUX_FS_STRUCT_SUPER_HAS_ALLOC_INODE
+Index: src/afs/sysincludes.h
+===================================================================
+RCS file: /cvs/openafs/src/afs/sysincludes.h,v
+retrieving revision 1.28.2.15
+diff -u -r1.28.2.15 sysincludes.h
+--- src/afs/sysincludes.h	23 Nov 2007 13:45:04 -0000	1.28.2.15
++++ src/afs/sysincludes.h	12 Aug 2008 19:45:30 -0000
+@@ -108,7 +108,11 @@
+ #include <linux/mm.h>
+ #include <linux/slab.h>
+ #include <linux/string.h>
++#if defined(LINUX_SEMAPHORE_H)
++#include <linux/semaphore.h>
++#else
+ #include <asm/semaphore.h>
++#endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ #include <linux/mutex.h>
+ #endif
+Index: src/cf/linux-test4.m4
+===================================================================
+RCS file: /cvs/openafs/src/cf/linux-test4.m4,v
+retrieving revision 1.20.2.49
+diff -u -r1.20.2.49 linux-test4.m4
+--- src/cf/linux-test4.m4	9 Jun 2008 03:39:44 -0000	1.20.2.49
++++ src/cf/linux-test4.m4	12 Aug 2008 19:45:31 -0000
+@@ -1032,3 +1032,16 @@
+     AC_DEFINE([EXPORTED_PROC_ROOT_FS], 1, [define if proc_root_fs is exported])
+   fi])
+  
++AC_DEFUN([LINUX_SEMAPHORE_H_EXISTS], [
++  AC_MSG_CHECKING([for linux/semaphore.h existance])
++  AC_CACHE_VAL([ac_cv_linux_semaphore_h_exists], [
++    AC_TRY_KBUILD(
++[#include <linux/semaphore.h>],
++[return;],
++      ac_cv_linux_semaphore_h_exists=yes,
++      ac_cv_linux_semaphore_h_exists=no)])
++  AC_MSG_RESULT($ac_cv_linux_semaphore_h_exists)
++  if test "x$ac_cv_linux_semaphore_h_exists" = "xyes"; then
++    AC_DEFINE([LINUX_SEMAPHORE_H], 1, [define if linux/semaphore.h exists])
++  fi])
++
Index: /server/fedora/specs/openafs.spec.patch
===================================================================
--- /server/fedora/specs/openafs.spec.patch	(revision 903)
+++ /server/fedora/specs/openafs.spec.patch	(revision 904)
@@ -1,5 +1,5 @@
 --- openafs.spec.orig	2008-04-28 18:13:44.000000000 -0400
 +++ openafs.spec	2008-06-03 12:36:29.000000000 -0400
-@@ -240,6 +240,9 @@
+@@ -240,6 +240,10 @@
  %endif
  ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
@@ -7,9 +7,10 @@
 +Patch1000: openafs-scripts.patch
 +Patch1001: openafs-postinit.patch
++Patch1002: openafs-2.6.27.patch
 +
  #    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
  Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
  Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
-@@ -678,6 +681,8 @@
+@@ -679,6 +682,9 @@
  
  # Patch openafs to build a kernel module named "openafs" instead of "libafs"
@@ -17,4 +18,5 @@
 +%patch1000 -p1 -b .scripts
 +%patch1001 -p1 -b .postinit
++%patch1002 -p0 -b .2.6.27
  
  ##############################################################################
