doc: Update rcu_access_pointer() advice in rcu_dereference.rst
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 4 Aug 2022 18:23:19 +0000 (11:23 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 11:58:15 +0000 (04:58 -0700)
commit022d1b356c8a687a58a74cbc90a92d56d3aa207d
tree5a11f53b1ab5532cf6218bbc48d601737df1f0be
parentca8a439e4611765b0e4bf5d4fd3fab54bab5ffe2
doc: Update rcu_access_pointer() advice in rcu_dereference.rst

This commit updates the rcu_access_pointer() advice, noting that its
return value should not be assigned to a local variable, and also noting
that there is little point in using rcu_access_pointer() within an RCU
read-side critical section.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/RCU/rcu_dereference.rst