Lines Matching defs:ss
22 * they define the ss->css_rstat_flush callback.
26 return css_is_self(css) || css->ss->css_rstat_flush != NULL;
41 static spinlock_t *ss_rstat_lock(struct cgroup_subsys *ss)
43 if (ss)
44 return &ss->rstat_ss_lock;
49 static inline struct llist_head *ss_lhead_cpu(struct cgroup_subsys *ss, int cpu)
51 if (ss)
52 return per_cpu_ptr(ss->lhead, cpu);
61 * Atomically inserts the css in the ss's llist for the given cpu. This is
62 * reentrant safe i.e. safe against softirq, hardirq and nmi. The ss's llist
121 lhead = ss_lhead_cpu(css->ss, cpu);
167 static void css_process_update_tree(struct cgroup_subsys *ss, int cpu)
169 struct llist_head *lhead = ss_lhead_cpu(ss, cpu);
224 lockdep_assert_held(ss_rstat_lock(head->ss));
297 css_process_update_tree(root->ss, cpu);
370 __acquires(ss_rstat_lock(css->ss))
376 lock = ss_rstat_lock(css->ss);
387 __releases(ss_rstat_lock(css->ss))
392 lock = ss_rstat_lock(css->ss);
435 pos->ss->css_rstat_flush(pos, cpu);
456 } else if (css->ss->css_rstat_flush == NULL)
522 * @ss: target subsystem
524 * If @ss is NULL, the static locks associated with the base stats
525 * are initialized. If @ss is non-NULL, the subsystem-specific locks
528 int __init ss_rstat_init(struct cgroup_subsys *ss)
532 if (ss) {
533 ss->lhead = alloc_percpu(struct llist_head);
534 if (!ss->lhead)
538 spin_lock_init(ss_rstat_lock(ss));
540 init_llist_head(ss_lhead_cpu(ss, cpu));