Home
last modified time | relevance | path

Searched refs:blkcg (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.1/block/
Dblk-cgroup.c47 struct blkcg blkcg_root;
128 css_put(&blkg->blkcg->css); in __blkg_release()
187 return &bio->bi_blkg->blkcg->css; in bio_blkcg_css()
197 static inline struct blkcg *blkcg_parent(struct blkcg *blkcg) in blkcg_parent() argument
199 return css_to_blkcg(blkcg->css.parent); in blkcg_parent()
210 static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct gendisk *disk, in blkg_alloc() argument
236 blkg->blkcg = blkcg; in blkg_alloc()
250 pd = pol->pd_alloc_fn(gfp_mask, disk->queue, blkcg); in blkg_alloc()
270 static struct blkcg_gq *blkg_create(struct blkcg *blkcg, struct gendisk *disk, in blkg_create() argument
285 if (!css_tryget_online(&blkcg->css)) { in blkg_create()
[all …]
Dblk-ioprio.c72 static struct ioprio_blkcg *blkcg_to_ioprio_blkcg(struct blkcg *blkcg) in blkcg_to_ioprio_blkcg() argument
74 return container_of(blkcg_to_cpd(blkcg, &ioprio_policy), in blkcg_to_ioprio_blkcg()
91 return blkcg_to_ioprio_blkcg(pd->blkg->blkcg); in ioprio_blkcg_from_bio()
96 struct ioprio_blkcg *blkcg = ioprio_blkcg_from_css(seq_css(sf)); in ioprio_show_prio_policy() local
98 seq_printf(sf, "%s\n", policy_name[blkcg->prio_policy]); in ioprio_show_prio_policy()
105 struct ioprio_blkcg *blkcg = ioprio_blkcg_from_css(of_css(of)); in ioprio_set_prio_policy() local
114 blkcg->prio_policy = ret; in ioprio_set_prio_policy()
119 ioprio_alloc_pd(gfp_t gfp, struct request_queue *q, struct blkcg *blkcg) in ioprio_alloc_pd() argument
139 struct ioprio_blkcg *blkcg; in ioprio_alloc_cpd() local
141 blkcg = kzalloc(sizeof(*blkcg), gfp); in ioprio_alloc_cpd()
[all …]
Dblk-cgroup.h56 struct blkcg *blkcg; member
88 struct blkcg { struct
108 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg() argument
110 return css ? container_of(css, struct blkcg, css) : NULL; in css_to_blkcg()
139 struct blkcg *blkcg; member
148 struct request_queue *q, struct blkcg *blkcg);
178 extern struct blkcg blkcg_root;
193 void blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg,
207 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
236 static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, in blkg_lookup() argument
[all …]
Dblk-cgroup-fc-appid.c15 struct blkcg *blkcg; in blkcg_set_fc_appid() local
29 blkcg = css_to_blkcg(css); in blkcg_set_fc_appid()
37 strlcpy(blkcg->fc_app_id, app_id, app_id_len); in blkcg_set_fc_appid()
53 if (!bio->bi_blkg || bio->bi_blkg->blkcg->fc_app_id[0] == '\0') in blkcg_get_fc_appid()
55 return bio->bi_blkg->blkcg->fc_app_id; in blkcg_get_fc_appid()
Dbfq-cgroup.c490 static struct bfq_group_data *blkcg_to_bfqgd(struct blkcg *blkcg) in blkcg_to_bfqgd() argument
492 return cpd_to_bfqgd(blkcg_to_cpd(blkcg, &blkcg_policy_bfq)); in blkcg_to_bfqgd()
519 struct blkcg *blkcg) in bfq_pd_alloc() argument
543 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init()
619 bio_associate_blkg_from_css(bio, &blkg->blkcg->css); in bfq_bio_bfqg()
625 &bfqg_to_blkg(bfqd->root_group)->blkcg->css); in bfq_bio_bfqg()
779 serial_nr = bfqg_to_blkg(bfqg)->blkcg->css.serial_nr; in bfq_bic_update_cgroup()
1001 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight_legacy() local
1002 struct bfq_group_data *bfqgd = blkcg_to_bfqgd(blkcg); in bfq_io_show_weight_legacy()
1025 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight() local
[all …]
Dblk-iocost.c200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \
691 static struct ioc_cgrp *blkcg_to_iocc(struct blkcg *blkcg) in blkcg_to_iocc() argument
693 return container_of(blkcg_to_cpd(blkcg, &blkcg_policy_iocost), in blkcg_to_iocc()
1225 struct ioc_cgrp *iocc = blkcg_to_iocc(blkg->blkcg); in weight_updated()
1921 pr_cont_cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup); in transfer_surpluses()
2921 struct blkcg *blkcg) in ioc_pd_alloc() argument
2923 int levels = blkcg->css.cgroup->level + 1; in ioc_pd_alloc()
2964 iocg->level = blkg->blkcg->css.cgroup->level; in ioc_pd_init()
3042 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in ioc_weight_show() local
3043 struct ioc_cgrp *iocc = blkcg_to_iocc(blkcg); in ioc_weight_show()
[all …]
Dblk-throttle.c160 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit()
190 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit()
230 &tg_to_blkg(__tg)->blkcg->css, "throtl " fmt, ##args);\
340 struct blkcg *blkcg) in throtl_pd_alloc() argument
1377 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_conf() local
1383 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_conf()
1567 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_limit() local
1576 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_limit()
1876 if (!list_empty(&tg_to_blkg(tg)->blkcg->css.children)) in throtl_can_upgrade()
1958 !list_empty(&tg_to_blkg(tg)->blkcg->css.children))) in throtl_tg_can_downgrade()
[all …]
Dblk-iolatency.c837 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in iolatency_set_limit() local
846 ret = blkg_conf_prep(blkcg, &blkcg_policy_iolatency, buf, &ctx); in iolatency_set_limit()
958 struct blkcg *blkcg) in iolatency_pd_alloc() argument
Dbfq-iosched.h1104 &bfqg_to_blkg(bfqq_group(bfqq))->blkcg->css, \
1110 &bfqg_to_blkg(bfqg)->blkcg->css, fmt, ##args); \
Dbfq-iosched.c586 depth = bfqg_to_blkg(bfqq_group(bfqq))->blkcg->css.cgroup->level + 1; in bfqq_request_over_limit()
/Linux-v6.1/tools/cgroup/
Diocost_monitor.py69 def blkcg_name(blkcg): argument
70 return blkcg.css.cgroup.kn.name.string_().decode('utf-8')
72 def walk(self, blkcg, q_id, parent_path): argument
74 not (blkcg.css.flags.value_() & prog['CSS_ONLINE'].value_()):
77 name = BlkgIterator.blkcg_name(blkcg)
80 address=radix_tree_lookup(blkcg.blkg_tree.address_of_(), q_id))
87 blkcg.css.children.address_of_(), 'css.sibling'):
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-class-fc6 identifier in the blkcg associated with a cgroup id. The