Date: Sun, 18 Jul 2021 00:36:14 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 89f8a8c30632 - stable/13 - LinuxKPI: add rcu_dereference_check() Message-ID: <202107180036.16I0aENo048856@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org> AuthorDate: 2021-05-24 18:40:42 +0000 Commit: Bjoern A. Zeeb <bz@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))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107180036.16I0aENo048856>