Lines Matching defs:css
52 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
97 * blkcg_css - find the current css
99 * Find the css associated with either the kthread or the current task.
100 * This may return a dying css, so it is up to the caller to use tryget logic
105 struct cgroup_subsys_state *css;
107 css = kthread_blkcg();
108 if (css)
109 return css;
188 css_put(&blkg->blkcg->css);
282 return &bio->bi_blkg->blkcg->css;
294 return css_to_blkcg(blkcg->css.parent);
390 if (!css_tryget_online(&blkcg->css)) {
451 css_put(&blkcg->css);
622 static int blkcg_reset_stats(struct cgroup_subsys_state *css,
625 struct blkcg *blkcg = css_to_blkcg(css);
1047 static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu)
1050 if (cgroup_parent(css->cgroup))
1051 __blkcg_rstat_flush(css_to_blkcg(css), cpu);
1165 cgroup_rstat_flush(blkcg->css.cgroup);
1194 struct list_head *blkcg_get_cgwb_list(struct cgroup_subsys_state *css)
1196 return &css_to_blkcg(css)->cgwb_list;
1211 * and handles the destruction of blkgs. Here the css reference held by
1227 * Destroying the blkgs releases the reference held on the blkcg's css allowing
1298 * @css: css of interest
1300 * This function is called when @css is about to go away. Here the cgwbs are
1304 static void blkcg_css_offline(struct cgroup_subsys_state *css)
1307 wb_blkcg_offline(css);
1310 blkcg_unpin_online(css);
1313 static void blkcg_css_free(struct cgroup_subsys_state *css)
1315 struct blkcg *blkcg = css_to_blkcg(css);
1383 return &blkcg->css;
1398 static int blkcg_css_online(struct cgroup_subsys_state *css)
1400 struct blkcg *parent = blkcg_parent(css_to_blkcg(css));
1408 blkcg_pin_online(&parent->css);
2000 * @css: target css
2007 struct cgroup_subsys_state *css)
2012 blkg = blkg_lookup_create(css_to_blkcg(css), bio->bi_bdev->bd_disk);
2026 * bio_associate_blkg_from_css - associate a bio with a specified css
2028 * @css: target css
2030 * Associate @bio with the blkg found by combining the css's blkg and the
2040 struct cgroup_subsys_state *css)
2045 if (css && css->parent) {
2046 bio->bi_blkg = blkg_tryget_closest(bio, css);
2058 * Associate @bio with the blkg found from the bio's css and request_queue.
2060 * already associated, the css is reused and association redone as the
2065 struct cgroup_subsys_state *css;
2070 css = bio_blkcg_css(bio);
2072 css = blkcg_css();
2074 bio_associate_blkg_from_css(bio, css);
2112 if (!cgroup_parent(blkcg->css.cgroup))
2141 cgroup_rstat_updated(blkcg->css.cgroup, cpu);
2147 struct cgroup_subsys_state *css;
2151 for (css = blkcg_css(); css; css = css->parent) {
2152 if (atomic_read(&css->cgroup->congestion_count)) {