Whamcloud - gitweb
Branch b_release_1_8_1
authoryangsheng <yangsheng>
Mon, 11 May 2009 03:55:52 +0000 (03:55 +0000)
committeryangsheng <yangsheng>
Mon, 11 May 2009 03:55:52 +0000 (03:55 +0000)
b=18668

i=adilger, johann

Remove the 8kstack patch.

lustre/autoconf/lustre-core.m4
lustre/kernel_patches/series/2.6-rhel5.series
lustre/kernel_patches/series/2.6.22-vanilla.series

index f5facd4..bff3962 100644 (file)
@@ -1586,6 +1586,22 @@ LB_LINUX_TRY_COMPILE([
 ])
 ])
 
+# Ensure stack size big than 8k in Lustre server
+AC_DEFUN([LC_STACK_SIZE],
+[AC_MSG_CHECKING([stack size big than 8k])
+LB_LINUX_TRY_COMPILE([
+       #include <linux/thread_info.h>
+],[
+        #if THREAD_SIZE < 8192
+        #error "stack size < 8192"
+        #endif
+],[
+        AC_MSG_RESULT(yes)
+],[
+        AC_MSG_ERROR([Lustre requires that Linux is configured with at least a 8KB stack.])
+])
+])
+
 #
 # LC_PROG_LINUX
 #
@@ -1595,6 +1611,7 @@ AC_DEFUN([LC_PROG_LINUX],
          [LC_LUSTRE_VERSION_H
           if test x$enable_server = xyes ; then
               LC_CONFIG_BACKINGFS
+              LC_STACK_SIZE
           fi
           LC_CONFIG_PINGER
           LC_CONFIG_CHECKSUM
index c07ab4f..b202ffc 100644 (file)
@@ -5,7 +5,6 @@ jbd-jcberr-2.6.18-vanilla.patch
 export_symbols-2.6.18-vanilla.patch
 dev_read_only-2.6.18-vanilla.patch
 export-2.6.18-vanilla.patch
-8kstack-2.6.12.patch
 export-show_task-2.6.18-vanilla.patch
 sd_iostats-2.6-rhel5.patch
 export_symbol_numa-2.6-fc5.patch
index b1f1b08..c8df852 100644 (file)
@@ -7,7 +7,6 @@ export-truncate-2.6.18-vanilla.patch
 export_symbols-2.6.22-vanilla.patch 
 dev_read_only-2.6.22-vanilla.patch 
 export-2.6.18-vanilla.patch 
-8kstack-2.6.12.patch
 export-show_task-2.6.18-vanilla.patch 
 sd_iostats-2.6.22-vanilla.patch
 quota-large-limits-rhel5.patch