From 62dd7592080874ec064734cfd3cae41d786ef71c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 3 Feb 2012 09:13:00 +0000 Subject: [PATCH] fcst: Transform r4107 into something that makes sense git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4108 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_sess.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fcst/ft_sess.c b/fcst/ft_sess.c index 3f61e31b0..02f9dd9e8 100644 --- a/fcst/ft_sess.c +++ b/fcst/ft_sess.c @@ -78,7 +78,7 @@ static struct ft_tport *ft_tport_create(struct fc_lport *lport) return tport; } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0) /* * Free tport via RCU. */ @@ -107,10 +107,10 @@ static void ft_tport_delete(struct ft_tport *tport) BUG_ON(tport != lport->prov[FC_TYPE_FCP]); rcu_assign_pointer(lport->prov[FC_TYPE_FCP], NULL); tport->lport = NULL; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) - call_rcu(&tport->rcu, ft_tport_rcu_free); -#else +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0) kfree_rcu(tport, rcu); +#else + call_rcu(&tport->rcu, ft_tport_rcu_free); #endif ft_tport_count--; }