Fix for compilaion issue with kernels between .18 < and .25.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1573 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-03-31 11:10:08 +00:00
parent fd6d06e3f3
commit e4ba045c90
2 changed files with 2 additions and 2 deletions

View 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);

View 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);