summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-06-28 09:00:01 -0700
committerPaul E. McKenney <paulmck@kernel.org>2026-07-23 10:47:10 -0700
commit573d76f7db5ba050bc7c7c73d30e1364fcee269b (patch)
treed430efa7e98c14258d9ec1336686a54da1a0bae6 /scripts/patch-kernel
parent1384ea908e5de451061b50b4eb76c4440c4d4a0d (diff)
downloadlinux-573d76f7db5ba050bc7c7c73d30e1364fcee269b.tar.gz
linux-573d76f7db5ba050bc7c7c73d30e1364fcee269b.zip
rcu: Mark __rcu_access_pointer() as context_unsafe()
A simple comparison of a pointer returned by rcu_access_pointer() results in a context-analysis warning for lockless inspection of the RCU-protected (also known as __rcu-protected) pointer. This can be suppressed by placing context_unsafe() calls around calls rcu_access_pointer(), but this is messy and distracting. This commit therefore wraps the underlying __rcu_access_pointer() macro with a call to context_unsafe(), thereby informing the context-analysis code that rcu_access_pointer() may safely be invoked outside of an RCU read-side critical section. Reported-by: Christoph Hellwig <hch@lst.de> Suggested-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Tested-by: Nilay Shroff <nilay@linux.ibm.com> Reviewed-by: Marco Elver <elver@google.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions