OSDN Git Service

rcu: Upgrade header comment for poll_state_synchronize_rcu()
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 25 Nov 2022 16:43:10 +0000 (08:43 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 4 Jan 2023 01:28:34 +0000 (17:28 -0800)
commit95ff24ee7b809ff8d253cd5edf196f137ae08c44
treeecbfd21506fa48ad1a35a1ffac9b6eff8a5f928f
parent253cbbff621407a6265ce7a6a03c3766f8846f02
rcu: Upgrade header comment for poll_state_synchronize_rcu()

This commit emphasizes the possibility of concurrent calls to
synchronize_rcu() and synchronize_rcu_expedited() causing one or
the other of the two grace periods being lost from the viewpoint of
poll_state_synchronize_rcu().

If you cannot afford to lose grace periods this way, you should
instead use the _full() variants of the polled RCU API, for
example, poll_state_synchronize_rcu_full().

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c