]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Provide __rcu_is_watching()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 12 May 2020 07:44:43 +0000 (09:44 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 19 May 2020 13:51:21 +0000 (15:51 +0200)
commitf935f02a5c354083f6708b450edef131417b389e
tree39a5dc1ef4133da88b638dd6b432d0c8d85d51cb
parent93a042bbf0389fe7b1c87bc0ef629dbfd6ece732
rcu: Provide __rcu_is_watching()

Same as rcu_is_watching() but without the preempt_disable/enable() pair
inside the function. It is merked noinstr so it ends up in the
non-instrumentable text section.

This is useful for non-preemptible code especially in the low level entry
section. Using rcu_is_watching() there results in a call to the
preempt_schedule_notrace() thunk which triggers noinstr section warnings in
objtool.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200512213810.518709291@linutronix.de
include/linux/rcutiny.h
include/linux/rcutree.h
kernel/rcu/tree.c