+1
−3
Loading
Currently, the srcu_gp_start_if_needed() is always be invoked in preempt disable's critical section, this commit therefore remove redundant preempt_disable/enable() in srcu_gp_start_if_needed() and adds a call to lockdep_assert_preemption_disabled() in order to enable lockdep to diagnose mistaken invocations of this function from preempts-enabled code. Fixes: 65b4a595 ("srcu: Make Tiny SRCU explicitly disable preemption") Signed-off-by:Zqiang <qiang.zhang@linux.dev> Signed-off-by:
Paul E. McKenney <paulmck@kernel.org>