Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-10805 ldlm: convert ACCESS_ONCE() to READ_ONCE()
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_compat.h
diff --git
a/lustre/include/lustre_compat.h
b/lustre/include/lustre_compat.h
index
3b42151
..
158bbb3
100644
(file)
--- a/
lustre/include/lustre_compat.h
+++ b/
lustre/include/lustre_compat.h
@@
-693,4
+693,8
@@
static inline struct timespec current_time(struct inode *inode)
#define alloc_workqueue(name, flags, max_active) create_workqueue(name)
#endif
#define alloc_workqueue(name, flags, max_active) create_workqueue(name)
#endif
+#ifndef READ_ONCE
+#define READ_ONCE ACCESS_ONCE
+#endif
+
#endif /* _LUSTRE_COMPAT_H */
#endif /* _LUSTRE_COMPAT_H */