rcu-tasks: Add Kconfig option to mediate smp_mb() vs. IPI
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 19 Mar 2020 00:16:37 +0000 (17:16 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:03:52 +0000 (11:03 -0700)
commit9ae58d7bd11f1fc4c96389df11751f8593d8bd33
tree2839dd92f0e5f91bedc25cd399b2a0ca619f48a1
parent238dbce39ea467577ce7e41ee3e98748c436ed0f
rcu-tasks: Add Kconfig option to mediate smp_mb() vs. IPI

This commit provides a new TASKS_TRACE_RCU_READ_MB Kconfig option that
enables use of read-side memory barriers by both rcu_read_lock_trace()
and rcu_read_unlock_trace() when the are executed with the
current->trc_reader_special.b.need_mb flag set.  This flag is currently
never set.  Doing that is the subject of a later commit.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/rcupdate_trace.h
kernel/rcu/Kconfig
kernel/rcu/tasks.h