rcu-tasks: Provide rcu_trace_implies_rcu_gp()
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Oct 2022 11:39:43 +0000 (19:39 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 18 Oct 2022 17:27:02 +0000 (10:27 -0700)
commite6c86c513f440bec5f1046539c7e3c6c653842da
treeb74b9661a63b5b201ae8d3f0072d05e2bcbd3798
parent62c69e89e81bfbdb9a87ae3e0599dcc6aacf786b
rcu-tasks: Provide rcu_trace_implies_rcu_gp()

As an accident of implementation, an RCU Tasks Trace grace period also
acts as an RCU grace period.  However, this could change at any time.
This commit therefore creates an rcu_trace_implies_rcu_gp() that currently
returns true to codify this accident.  Code relying on this accident
must call this function to verify that this accident is still happening.

Reported-by: Hou Tao <houtao@huaweicloud.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Martin KaFai Lau <martin.lau@linux.dev>
Link: https://lore.kernel.org/r/20221014113946.965131-2-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/rcupdate.h
kernel/rcu/tasks.h