svn commit: r329970 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Feb 25 10:33:56 UTC 2018
Author: hselasky
Date: Sun Feb 25 10:33:55 2018
New Revision: 329970
URL: https://svnweb.freebsd.org/changeset/base/329970
Log:
MFC r329514:
Implement the rcu_dereference_raw() function macro.
Make sure all RCU dereferencing use the READ_ONCE() function macro.
Submitted by: Johannes Lundberg <johalun0 at gmail.com>
Sponsored by: Mellanox Technologies
Sponsored by: Limelight Networks
Modified:
stable/11/sys/compat/linuxkpi/common/include/linux/rcupdate.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linuxkpi/common/include/linux/rcupdate.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/rcupdate.h Sun Feb 25 10:33:12 2018 (r329969)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/rcupdate.h Sun Feb 25 10:33:55 2018 (r329970)
@@ -74,13 +74,16 @@
} 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)
More information about the svn-src-all
mailing list