rcu: Make task_subsys_state() RCU-lockdep checks handle boot-time use
[linux-2.6.git] / include / linux / cgroup.h
index c9bbcb2a75aecbacdb1463cf08a2b0a26d0f264b..a73e1ced09b863d675aa2cfca6e4540d4f471a2f 100644 (file)
@@ -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());
 }