summaryrefslogtreecommitdiff
path: root/kernel/rcu/tree_stall.h
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2021-04-29 02:12:19 +0300
committerPaul E. McKenney <paulmck@kernel.org>2021-05-13 19:13:23 +0300
commitc70360c3343f975bd066b6b98159d93f1bd4219f (patch)
tree92fbb94faa019f023ff4521c453bbfb6abbaac67 /kernel/rcu/tree_stall.h
parent0223846010750e28e4330f1beefb5564ba406ef7 (diff)
downloadlinux-c70360c3343f975bd066b6b98159d93f1bd4219f.tar.xz
rcu: Add missing __releases() annotation
Sparse reports a warning at rcu_print_task_stall(): "warning: context imbalance in rcu_print_task_stall - unexpected unlock" The root cause is a missing annotation on rcu_print_task_stall(). This commit therefore adds the missing __releases(rnp->lock) annotation. Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree_stall.h')
-rw-r--r--kernel/rcu/tree_stall.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/tree_stall.h b/kernel/rcu/tree_stall.h
index e6bd518e0bc4..ffb8cf6c6437 100644
--- a/kernel/rcu/tree_stall.h
+++ b/kernel/rcu/tree_stall.h
@@ -314,6 +314,7 @@ static void rcu_print_detail_task_stall_rnp(struct rcu_node *rnp)
* tasks blocked within RCU read-side critical sections.
*/
static int rcu_print_task_stall(struct rcu_node *rnp, unsigned long flags)
+ __releases(rnp->lock)
{
raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
return 0;