rcu/nocb: Add missing annotation for rcu_nocb_bypass_unlock()
authorJules Irenge <jbi.octave@gmail.com>
Thu, 30 Jan 2020 00:30:09 +0000 (00:30 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Feb 2020 23:58:23 +0000 (15:58 -0800)
commit92c0b889f2ff6898710d49458b6eae1de50895c6
tree9f476d8ad5b305c00efdc157de2484387ade21d0
parent9ced454807191e44ef093aeeee68194be9ce3a1a
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 <jbi.octave@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/tree_plugin.h