Skip to content

Commit c70360c

Browse files
irengepaulmckrcu
authored andcommitted
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 <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 0223846 commit c70360c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/rcu/tree_stall.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ static void rcu_print_detail_task_stall_rnp(struct rcu_node *rnp)
314314
* tasks blocked within RCU read-side critical sections.
315315
*/
316316
static int rcu_print_task_stall(struct rcu_node *rnp, unsigned long flags)
317+
__releases(rnp->lock)
317318
{
318319
raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
319320
return 0;

0 commit comments

Comments
 (0)