summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8020bf0)
Linux kernel 4.15 removed ACCESS_ONCE, use READ_ONCE instead.
Linux-commit:
b899a850431e2dd0943205a63a68573f3e312d0d
Test-Parameters: trivial
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: I139e4cab95b99f362a85c37efe236137835f9c54
Reviewed-on: https://review.whamcloud.com/31789
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
#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 */
lwi);
LASSERT(rc == 0 || rc == -ETIMEDOUT);
/* Wait again if we changed rq_deadline. */
lwi);
LASSERT(rc == 0 || rc == -ETIMEDOUT);
/* Wait again if we changed rq_deadline. */
- rq_deadline = ACCESS_ONCE(req->rq_deadline);
+ rq_deadline = READ_ONCE(req->rq_deadline);
deadline = start + bulk_timeout;
if (deadline > rq_deadline)
deadline = rq_deadline;
deadline = start + bulk_timeout;
if (deadline > rq_deadline)
deadline = rq_deadline;