diff options
-rw-r--r-- | include/linux/cgroup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index c9bbcb2a75ae..a73e1ced09b8 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -489,6 +489,7 @@ static inline struct cgroup_subsys_state *task_subsys_state( | |||
489 | { | 489 | { |
490 | return rcu_dereference_check(task->cgroups->subsys[subsys_id], | 490 | return rcu_dereference_check(task->cgroups->subsys[subsys_id], |
491 | rcu_read_lock_held() || | 491 | rcu_read_lock_held() || |
492 | !rcu_scheduler_active || | ||
492 | cgroup_lock_is_held()); | 493 | cgroup_lock_is_held()); |
493 | } | 494 | } |
494 | 495 | ||