[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210428231219.48109-1-jbi.octave@gmail.com>
Date: Thu, 29 Apr 2021 00:12:19 +0100
From: Jules Irenge <jbi.octave@...il.com>
To: rcu@...r.kernel.org
Cc: joel@...lfernandes.org, jiangshanlai@...il.com,
mathieu.desnoyers@...icios.com, rostedt@...dmis.org,
paulmck@...nel.org, linux-kernel@...r.kernel.org,
Jules Irenge <jbi.octave@...il.com>
Subject: [PATCH] rcu: Add missing __releases() annotation
Sparse report a warning at rcu_print_task_stall()
"warning: context imbalance in rcu_print_task_stall - unexpected unlock"
The root cause is a missing annotation at rcu_print_task_stall() function
Add the missing __releases(rnp->lock) annotation
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
kernel/rcu/tree_stall.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/rcu/tree_stall.h b/kernel/rcu/tree_stall.h
index 59b95cc5cbdf..18b2d5274d65 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;
--
2.31.1
Powered by blists - more mailing lists