mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user