rcu: Fix a sparse warning in rcu_initiate_boost()
authorPranith Kumar <bobby.prani@gmail.com>
Wed, 11 Jun 2014 20:39:40 +0000 (16:39 -0400)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 9 Jul 2014 16:15:45 +0000 (09:15 -0700)
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>
kernel/rcu/tree_plugin.h

index b39ba7239bd64c9c7fb427ad75cd4d219ff929f4..0409ba34a05c292ffca5babf5b559303201c8334 100644 (file)
@@ -1259,6 +1259,7 @@ static int rcu_boost_kthread(void *arg)
  * about it going away.
  */
 static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags)
+       __releases(rnp->lock)
 {
        struct task_struct *t;
 
@@ -1494,6 +1495,7 @@ static void rcu_prepare_kthreads(int cpu)
 #else /* #ifdef CONFIG_RCU_BOOST */
 
 static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags)
+       __releases(rnp->lock)
 {
        raw_spin_unlock_irqrestore(&rnp->lock, flags);
 }