1 From 9fcd5003c0363af140a06aba94e62c9e1ea0381e Mon Sep 17 00:00:00 2001
2 From: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
3 Date: Mon, 11 Jan 2016 16:45:30 +0100
4 Subject: [PATCH] Fix fusion: Unknown symbol tasklist_lock (err 0)
6 Commit 28f6569ab7d0 renamed TREE_PREEMPT_RCU to PREEMPT_RCU in 3.19
7 As a result, the code incorrectly falls back to using tasklist_lock
8 (which was made private in 2.6.18)
10 Always use rcu_read_lock on modern kernels.
12 Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
14 linux/drivers/char/fusion/fusionee.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
17 diff --git a/linux/drivers/char/fusion/fusionee.c b/linux/drivers/char/fusion/fusionee.c
18 index ef067f5bc831..70cd0a665f98 100644
19 --- a/linux/drivers/char/fusion/fusionee.c
20 +++ b/linux/drivers/char/fusion/fusionee.c
21 @@ -925,7 +925,7 @@ fusionee_kill(FusionDev * dev,
22 if (f != fusionee && (!target || target == f->id)) {
23 struct task_struct *p;
25 -#if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) || defined(CONFIG_TINY_RCU) || defined(rcu_read_lock)
26 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
29 read_lock(&tasklist_lock);
30 @@ -946,7 +946,7 @@ fusionee_kill(FusionDev * dev,
34 -#if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) || defined(CONFIG_TINY_RCU) || defined(rcu_read_unlock)
35 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
38 read_unlock(&tasklist_lock);