author: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-10 19:07:44 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-10 19:07:44 -0700
commit: 97d052ea3fa853b9aabcc4baca1a605cb1188611
parent: 086ba2ec163b638abd2a90ef3e8bab0238d02e56
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/init/init_task.c b/init/init_task.c
index a3eb3847e1f4..89024e8c4e95 100644
--- a/init/init_task.c
+++ b/init/init_task.c
@@ -154,7 +154,8 @@ struct task_struct init_task
.trc_holdout_list = LIST_HEAD_INIT(init_task.trc_holdout_list),
#endif
#ifdef CONFIG_CPUSETS
- .mems_allowed_seq = SEQCNT_ZERO(init_task.mems_allowed_seq),
+ .mems_allowed_seq = SEQCNT_SPINLOCK_ZERO(init_task.mems_allowed_seq,
+ &init_task.alloc_lock),
#endif
#ifdef CONFIG_RT_MUTEXES
.pi_waiters = RB_ROOT_CACHED,