diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-06-11 16:39:41 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-07-09 12:15:51 -0400 |
commit | b41d1b924d0bd41a225a17f39297b9de0dca93d9 (patch) | |
tree | 4f5e507549a4ebe6641e41f2013e17aa75a045d8 | |
parent | 615e41c6050a4878b2b68297f4672287941b93cd (diff) |
rcu: Fix a sparse warning in rcu_report_unblock_qs_rnp()
This commit annotates rcu_report_unblock_qs_rnp() in order to fix the
following sparse warning:
kernel/rcu/tree_plugin.h:990:13: warning: context imbalance in 'rcu_report_unblock_qs_rnp' - 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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 0409ba34a05c..c66bdcb20c82 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -988,6 +988,7 @@ static int rcu_preempt_blocked_readers_cgp(struct rcu_node *rnp) | |||
988 | 988 | ||
989 | /* Because preemptible RCU does not exist, no quieting of tasks. */ | 989 | /* Because preemptible RCU does not exist, no quieting of tasks. */ |
990 | static void rcu_report_unblock_qs_rnp(struct rcu_node *rnp, unsigned long flags) | 990 | static void rcu_report_unblock_qs_rnp(struct rcu_node *rnp, unsigned long flags) |
991 | __releases(rnp->lock) | ||
991 | { | 992 | { |
992 | raw_spin_unlock_irqrestore(&rnp->lock, flags); | 993 | raw_spin_unlock_irqrestore(&rnp->lock, flags); |
993 | } | 994 | } |