Skip to content

Commit 92c0b88

Browse files
irengepaulmckrcu
authored andcommitted
rcu/nocb: Add missing annotation for rcu_nocb_bypass_unlock()
Sparse reports warning at rcu_nocb_bypass_unlock() warning: context imbalance in rcu_nocb_bypass_unlock() - unexpected unlock The root cause is a missing annotation of rcu_nocb_bypass_unlock() which causes the warning. This commit therefore adds the missing __releases(&rdp->nocb_bypass_lock) annotation. Signed-off-by: Jules Irenge <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Acked-by: Boqun Feng <[email protected]>
1 parent 9ced454 commit 92c0b88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/rcu/tree_plugin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,7 @@ static bool rcu_nocb_bypass_trylock(struct rcu_data *rdp)
15301530
* Release the specified rcu_data structure's ->nocb_bypass_lock.
15311531
*/
15321532
static void rcu_nocb_bypass_unlock(struct rcu_data *rdp)
1533+
__releases(&rdp->nocb_bypass_lock)
15331534
{
15341535
lockdep_assert_irqs_disabled();
15351536
raw_spin_unlock(&rdp->nocb_bypass_lock);

0 commit comments

Comments
 (0)