Fix for compilaion issue with kernels between .18 < and .25.
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 31 Mar 2010 11:10:08 +0000 (11:10 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 31 Mar 2010 11:10:08 +0000 (11:10 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1573 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/scst_lib.c
scst/src/scst_targ.c

index b0cf996..9f8bf7c 100644 (file)
@@ -2417,7 +2417,7 @@ static int scst_ioc_keeper_thread(void *arg)
 
        sBUG_ON(aic_keeper->aic != NULL);
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
        aic_keeper->aic = get_io_context(GFP_KERNEL);
 #else
        aic_keeper->aic = get_io_context(GFP_KERNEL, -1);
index 7ce8858..1699add 100644 (file)
@@ -3767,7 +3767,7 @@ int scst_cmd_thread(void *arg)
 
        if (p_cmd_threads != &scst_main_cmd_threads) {
                if (p_cmd_threads->io_context == NULL) {
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
                        p_cmd_threads->io_context = get_io_context(GFP_KERNEL);
 #else
                        p_cmd_threads->io_context = get_io_context(GFP_KERNEL, -1);