diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-06-11 16:39:40 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-07-09 12:15:45 -0400 |
commit | 615e41c6050a4878b2b68297f4672287941b93cd (patch) | |
tree | 21fd86437c72b85aef936f552997016d8d8bccea | |
parent | 406e3e536550bcb87ccbedddcd483776b1828761 (diff) |
rcu: Fix a sparse warning in rcu_initiate_boost()
This commit annotates rcu_initiate_boost() fixes the following sparse
warning:
kernel/rcu/tree_plugin.h:1494:13: warning: context imbalance in 'rcu_initiate_boost' - unexpected unlock
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
-rw-r--r-- | kernel/rcu/tree_plugin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index b39ba7239bd6..0409ba34a05c 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -1259,6 +1259,7 @@ static int rcu_boost_kthread(void *arg) | |||
1259 | * about it going away. | 1259 | * about it going away. |
1260 | */ | 1260 | */ |
1261 | static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags) | 1261 | static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags) |
1262 | __releases(rnp->lock) | ||
1262 | { | 1263 | { |
1263 | struct task_struct *t; | 1264 | struct task_struct *t; |
1264 | 1265 | ||
@@ -1494,6 +1495,7 @@ static void rcu_prepare_kthreads(int cpu) | |||
1494 | #else /* #ifdef CONFIG_RCU_BOOST */ | 1495 | #else /* #ifdef CONFIG_RCU_BOOST */ |
1495 | 1496 | ||
1496 | static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags) | 1497 | static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags) |
1498 | __releases(rnp->lock) | ||
1497 | { | 1499 | { |
1498 | raw_spin_unlock_irqrestore(&rnp->lock, flags); | 1500 | raw_spin_unlock_irqrestore(&rnp->lock, flags); |
1499 | } | 1501 | } |