git: 89f8a8c30632 - stable/13 - LinuxKPI: add rcu_dereference_check()
Bjoern A. Zeeb
bz at FreeBSD.org
Sun Jul 18 00:36:18 UTC 2021
The branch stable/13 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=89f8a8c30632c09e15d11456469a32cdc9e06d19
commit 89f8a8c30632c09e15d11456469a32cdc9e06d19
Author: Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-05-24 18:40:42 +0000
Commit: Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-07-18 00:35:00 +0000
LinuxKPI: add rcu_dereference_check()
Add a define for rcu_dereference_check() to rcu_dereference_protected()
which ignores the check argument. Our lockdep compat implementation
for use cases found in iwlwifi would return 1 anyway.
Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30436
(cherry picked from commit fa58da02f708a22200a89032b8eaf35e1c8ef4a6)
---
sys/compat/linuxkpi/common/include/linux/rcupdate.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/rcupdate.h b/sys/compat/linuxkpi/common/include/linux/rcupdate.h
index ea97fecee53b..bd8335216d1d 100644
--- a/sys/compat/linuxkpi/common/include/linux/rcupdate.h
+++ b/sys/compat/linuxkpi/common/include/linux/rcupdate.h
@@ -87,6 +87,9 @@
#define rcu_dereference(p) \
rcu_dereference_protected(p, 0)
+#define rcu_dereference_check(p, c) \
+ rcu_dereference_protected(p, c)
+
#define rcu_dereference_raw(p) \
((__typeof(*p) *)READ_ONCE(p))
More information about the dev-commits-src-all
mailing list