Lines Matching defs:cgroup_threadgroup_rwsem
114 DEFINE_PERCPU_RWSEM(cgroup_threadgroup_rwsem);
892 * We are synchronized through cgroup_threadgroup_rwsem
1287 rcu_sync_enter(&cgroup_threadgroup_rwsem.rss);
1290 rcu_sync_exit(&cgroup_threadgroup_rwsem.rss);
2390 * @lock_threadgroup: whether to down_write cgroup_threadgroup_rwsem
2393 * exits by write-locking cgroup_threadgroup_rwsem. However, some ->attach()
2408 * write-locking cgroup_threadgroup_rwsem. This allows ->attach() to assume that
2415 percpu_down_write(&cgroup_threadgroup_rwsem);
2420 * @lock_threadgroup: whether to up_write cgroup_threadgroup_rwsem
2425 percpu_up_write(&cgroup_threadgroup_rwsem);
2450 /* cgroup_threadgroup_rwsem protects racing against forks */
2716 * This function may be called without holding cgroup_threadgroup_rwsem
2825 * the caller must be holding cgroup_threadgroup_rwsem. The caller is also
2864 * Call holding cgroup_mutex and cgroup_threadgroup_rwsem.
6385 * succeeds it will hold cgroup_threadgroup_rwsem on return. If
6387 * before grabbing cgroup_threadgroup_rwsem and will hold a reference
6391 __acquires(&cgroup_mutex) __acquires(&cgroup_threadgroup_rwsem)
6494 __releases(&cgroup_threadgroup_rwsem) __releases(&cgroup_mutex)
6588 __releases(&cgroup_threadgroup_rwsem) __releases(&cgroup_mutex)