Implement the rcu_dereference_raw() function macro.
Make sure all RCU dereferencing use the READ_ONCE() function macro. MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
This commit is contained in:
parent
7c86047355
commit
0597ffb0b5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329514
@ -74,14 +74,17 @@
|
||||
} while (0)
|
||||
|
||||
#define rcu_access_pointer(p) \
|
||||
((__typeof(*p) *)(READ_ONCE(p)))
|
||||
((__typeof(*p) *)READ_ONCE(p))
|
||||
|
||||
#define rcu_dereference_protected(p, c) \
|
||||
((__typeof(*p) *)(p))
|
||||
((__typeof(*p) *)READ_ONCE(p))
|
||||
|
||||
#define rcu_dereference(p) \
|
||||
rcu_dereference_protected(p, 0)
|
||||
|
||||
#define rcu_dereference_raw(p) \
|
||||
((__typeof(*p) *)READ_ONCE(p))
|
||||
|
||||
#define rcu_pointer_handoff(p) (p)
|
||||
|
||||
#define rcu_assign_pointer(p, v) do { \
|
||||
|
Loading…
Reference in New Issue
Block a user