aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/sched.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2021-03-28 07:36:48 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2021-03-29 08:55:14 +0000
commit177772088060ab0f41bcdbdd81c4712e7f1c7621 (patch)
treeeab7ad88dd1da94024bc32b0cefbd52d2e6ed98b /sys/compat/linuxkpi/common/include/linux/sched.h
parent19318a62d7f8cfe2f0f5c24178fa33e8844ae5d1 (diff)
downloadsrc-177772088060ab0f41bcdbdd81c4712e7f1c7621.tar.gz
src-177772088060ab0f41bcdbdd81c4712e7f1c7621.zip
Reduce chance of RCU deadlock in the LinuxKPI by implementing the section
feature of the concurrency kit, CK. Differential Revision: https://reviews.freebsd.org/D29467 Reviewed by: kib@ and markj@ MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/sched.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index da38d89eb639..937e9f27870c 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -82,6 +82,7 @@ struct task_struct {
int bsd_interrupt_value;
struct work_struct *work; /* current work struct, if set */
struct task_struct *group_leader;
+ unsigned rcu_section[TS_RCU_TYPE_MAX];
};
#define current ({ \