diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index c9bbcb2a75aecbacdb1463cf08a2b0a26d0f264b..a73e1ced09b863d675aa2cfca6e4540d4f471a2f 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -489,6 +489,7 @@ static inline struct cgroup_subsys_state *task_subsys_state( { return rcu_dereference_check(task->cgroups->subsys[subsys_id], rcu_read_lock_held() || + !rcu_scheduler_active || cgroup_lock_is_held()); }