Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/linux/
Dblk-cgroup.h47 struct blkcg { struct
101 struct blkcg *blkcg; member
111 struct blkcg *blkcg; member
145 struct request_queue *q, struct blkcg *blkcg);
175 extern struct blkcg blkcg_root;
179 struct blkcg_gq *blkg_lookup_slowpath(struct blkcg *blkcg,
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,
228 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg()
230 return css ? container_of(css, struct blkcg, css) : NULL; in css_to_blkcg()
[all …]
Dblktrace_api.h32 struct blkcg;
37 void __trace_note_message(struct blk_trace *, struct blkcg *blkcg, const char *fmt, ...);
Dbacking-dev.h178 void wb_blkcg_offline(struct blkcg *blkcg);
384 static inline void wb_blkcg_offline(struct blkcg *blkcg) in wb_blkcg_offline() argument
/kernel/linux/linux-5.10/block/
Dblk-cgroup.c47 struct blkcg blkcg_root;
95 css_put(&blkg->blkcg->css); in __blkg_release()
150 static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct request_queue *q, in blkg_alloc() argument
173 blkg->blkcg = blkcg; in blkg_alloc()
187 pd = pol->pd_alloc_fn(gfp_mask, q, blkcg); in blkg_alloc()
203 struct blkcg_gq *blkg_lookup_slowpath(struct blkcg *blkcg, in blkg_lookup_slowpath() argument
214 blkg = radix_tree_lookup(&blkcg->blkg_tree, q->id); in blkg_lookup_slowpath()
218 rcu_assign_pointer(blkcg->blkg_hint, blkg); in blkg_lookup_slowpath()
231 static struct blkcg_gq *blkg_create(struct blkcg *blkcg, in blkg_create() argument
248 if (!css_tryget_online(&blkcg->css)) { in blkg_create()
[all …]
Dbfq-cgroup.c495 static struct bfq_group_data *blkcg_to_bfqgd(struct blkcg *blkcg) in blkcg_to_bfqgd() argument
497 return cpd_to_bfqgd(blkcg_to_cpd(blkcg, &blkcg_policy_bfq)); in blkcg_to_bfqgd()
524 struct blkcg *blkcg) in bfq_pd_alloc() argument
548 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init()
622 bio_associate_blkg_from_css(bio, &blkg->blkcg->css); in bfq_bio_bfqg()
628 &bfqg_to_blkg(bfqd->root_group)->blkcg->css); in bfq_bio_bfqg()
768 serial_nr = bfqg_to_blkg(bfqg)->blkcg->css.serial_nr; in bfq_bic_update_cgroup()
988 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight_legacy() local
989 struct bfq_group_data *bfqgd = blkcg_to_bfqgd(blkcg); in bfq_io_show_weight_legacy()
1012 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, \
702 static struct ioc_cgrp *blkcg_to_iocc(struct blkcg *blkcg) in blkcg_to_iocc() argument
704 return container_of(blkcg_to_cpd(blkcg, &blkcg_policy_iocost), in blkcg_to_iocc()
1193 struct ioc_cgrp *iocc = blkcg_to_iocc(blkg->blkcg); in weight_updated()
1895 pr_cont_cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup); in transfer_surpluses()
2912 struct blkcg *blkcg) in ioc_pd_alloc() argument
2914 int levels = blkcg->css.cgroup->level + 1; in ioc_pd_alloc()
2955 iocg->level = blkg->blkcg->css.cgroup->level; in ioc_pd_init()
3039 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in ioc_weight_show() local
3040 struct ioc_cgrp *iocc = blkcg_to_iocc(blkcg); in ioc_weight_show()
[all …]
Dblk-throttle.c313 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit()
343 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit()
383 tg_to_blkg(__tg)->blkcg, "throtl " fmt, ##args);\
493 struct blkcg *blkcg) in throtl_pd_alloc() argument
1486 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_conf() local
1492 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_conf()
1680 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_limit() local
1689 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_limit()
1957 if (!list_empty(&tg_to_blkg(tg)->blkcg->css.children)) in throtl_can_upgrade()
2039 !list_empty(&tg_to_blkg(tg)->blkcg->css.children))) in throtl_tg_can_downgrade()
[all …]
Dblk-iolatency.c833 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in iolatency_set_limit() local
842 ret = blkg_conf_prep(blkcg, &blkcg_policy_iolatency, buf, &ctx); in iolatency_set_limit()
956 struct blkcg *blkcg) in iolatency_pd_alloc() argument
Dbfq-iosched.h1079 bfqg_to_blkg(bfqq_group(bfqq))->blkcg, \
1086 bfqg_to_blkg(bfqg)->blkcg, fmt, ##args); \
/kernel/linux/linux-5.10/tools/cgroup/
Diocost_monitor.py64 def blkcg_name(blkcg): argument
65 return blkcg.css.cgroup.kn.name.string_().decode('utf-8')
67 def walk(self, blkcg, q_id, parent_path): argument
69 not (blkcg.css.flags.value_() & prog['CSS_ONLINE'].value_()):
72 name = BlkgIterator.blkcg_name(blkcg)
75 address=radix_tree_lookup(blkcg.blkg_tree.address_of_(), q_id))
82 blkcg.css.children.address_of_(), 'css.sibling'):
/kernel/linux/linux-5.10/mm/
Dbacking-dev.c394 struct blkcg *blkcg = css_to_blkcg(wb->blkcg_css); in cgwb_release_workfn() local
404 blkcg_unpin_online(blkcg); in cgwb_release_workfn()
440 struct blkcg *blkcg; in cgwb_create() local
448 blkcg = css_to_blkcg(blkcg_css); in cgwb_create()
450 blkcg_cgwb_list = &blkcg->cgwb_list; in cgwb_create()
503 blkcg_pin_online(blkcg); in cgwb_create()
669 void wb_blkcg_offline(struct blkcg *blkcg) in wb_blkcg_offline() argument
674 list_for_each_entry_safe(wb, next, &blkcg->cgwb_list, blkcg_node) in wb_blkcg_offline()
676 blkcg->cgwb_list.next = NULL; /* prevent new wb's */ in wb_blkcg_offline()
/kernel/linux/linux-5.10/kernel/trace/
Dblktrace.c148 void __trace_note_message(struct blk_trace *bt, struct blkcg *blkcg, in __trace_note_message() argument
174 blkcg = NULL; in __trace_note_message()
177 blkcg ? cgroup_id(blkcg->css.cgroup) : 1); in __trace_note_message()