From e5ccf3cc8ba3c91e57c7c6f6c9ebe05e429a5854 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 16 May 2008 16:02:34 -0700 Subject: [PATCH] Don't allow CONFIG_PREEMPT with Linux 2.6.x before 2.6.21, because it's busted. --- datapath/linux-2.6/compat-2.6/compat26.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datapath/linux-2.6/compat-2.6/compat26.h b/datapath/linux-2.6/compat-2.6/compat26.h index 80132324..04335f7d 100644 --- a/datapath/linux-2.6/compat-2.6/compat26.h +++ b/datapath/linux-2.6/compat-2.6/compat26.h @@ -3,6 +3,10 @@ #include +#if defined(CONFIG_PREEMPT) && LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,21) +#error "CONFIG_PREEMPT is broken with 2.6.x before 2.6.21--see commit 4498121ca3, \"[NET]: Handle disabled preemption in gfp_any()\"" +#endif + #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23) /*---------------------------------------------------------------------------- * In 2.6.24, a namespace argument became required for dev_get_by_name. */ -- 2.30.2