--- SOURCES/iscsitarget-1.4.20.3/kernel/wthread.c.old 2012-09-17 13:20:56.851724435 +0200 +++ SOURCES/iscsitarget-1.4.20.3/kernel/wthread.c 2012-09-17 13:50:24.206729613 +0200 @@ -73,7 +73,7 @@ current->io_context = info->wthread_ioc; atomic_inc(&info->wthread_ioc->nr_tasks); } else - info->wthread_ioc = get_io_context(GFP_KERNEL, -1); + info->wthread_ioc = get_task_io_context(current,GFP_KERNEL, -1); add_wait_queue(&info->wthread_sleep, &wait); --- SOURCES/iscsitarget-1.4.20.3/kernel/iscsi.h.old 2011-11-04 06:26:38.000000000 +0100 +++ SOURCES/iscsitarget-1.4.20.3/kernel/iscsi.h 2012-09-17 13:49:52.564313713 +0200 @@ -15,6 +15,7 @@ #include <linux/mm.h> #include <linux/crypto.h> #include <linux/scatterlist.h> +#include <linux/module.h> #include <net/sock.h> #include "iscsi_hdr.h" --- SOURCES/iscsitarget-1.4.20.3/kernel/event.c.old 2012-09-17 14:02:20.061487599 +0200 +++ SOURCES/iscsitarget-1.4.20.3/kernel/event.c 2012-09-17 14:02:29.449061140 +0200 @@ -9,6 +9,7 @@ #include <net/tcp.h> #include "iet_u.h" #include "iscsi_dbg.h" +#include "iscsi.h" static struct sock *nl; static u32 ietd_pid;