Home
last modified time | relevance | path

Searched refs:blkg (Results 1 – 9 of 9) sorted by relevance

/linux/block/
H A Dblk-cgroup.c72 * New IO stats are stored in the percpu iostat_cpu within blkcg_gq (blkg).
73 * There are multiple blkg's (one for each block device) attached to each
75 * but it doesn't know which blkg has the updated stats. If there are many
76 * block devices in a system, the cost of iterating all the blkg's to flush
82 * References to blkg are gotten and then put back in the process to
83 * protect against blkg removal.
119 struct blkcg_gq *blkg = container_of(work, struct blkcg_gq, in blkg_free_workfn() local
121 struct request_queue *q = blkg->q; in blkg_free_workfn()
127 * of the list blkg->q_node is delayed to here from blkg_destroy(), and in blkg_free_workfn()
133 if (blkg in blkg_free_workfn()
159 blkg_free(struct blkcg_gq * blkg) blkg_free() argument
174 struct blkcg_gq *blkg = container_of(rcu, struct blkcg_gq, rcu_head); __blkg_release() local
193 struct blkcg_gq *blkg = container_of(ref, struct blkcg_gq, refcnt); blkg_release() local
214 struct blkcg_gq *blkg = container_of(work, struct blkcg_gq, blkg_async_bio_workfn() local
245 struct blkcg_gq *blkg = bio->bi_blkg; blkcg_punt_bio_submit() local
309 struct blkcg_gq *blkg; blkg_alloc() local
385 struct blkcg_gq *blkg; blkg_create() local
474 struct blkcg_gq *blkg; blkg_lookup_create() local
520 blkg_destroy(struct blkcg_gq * blkg) blkg_destroy() argument
570 struct blkcg_gq *blkg; blkg_destroy_all() local
640 blkg_clear_stat(struct blkcg_gq * blkg) blkg_clear_stat() argument
656 struct blkcg_gq *blkg; blkcg_reset_stats() local
683 blkg_dev_name(struct blkcg_gq * blkg) blkg_dev_name() argument
714 struct blkcg_gq *blkg; blkcg_print_blkgs() local
839 struct blkcg_gq *blkg; blkg_conf_prep() local
985 blkcg_iostat_update(struct blkcg_gq * blkg,struct blkg_iostat * cur,struct blkg_iostat * last) blkcg_iostat_update() argument
1025 struct blkcg_gq *blkg = bisc->blkg; __blkcg_rstat_flush() local
1103 struct blkcg_gq *blkg = bdev->bd_disk->queue->root_blkg; blkcg_fill_root_iostats() local
1135 blkcg_print_one_stat(struct blkcg_gq * blkg,struct seq_file * s) blkcg_print_one_stat() argument
1190 struct blkcg_gq *blkg; blkcg_print_stat() local
1250 struct blkcg_gq *blkg = NULL; blkcg_get_first_blkg() local
1276 struct blkcg_gq *blkg; blkcg_destroy_blkgs() local
1469 struct blkcg_gq *new_blkg, *blkg; blkcg_init_disk() local
1551 struct blkcg_gq *blkg; blkcg_policy_teardown_pds() local
1590 struct blkcg_gq *blkg, *pinned_blkg = NULL; blkcg_activate_policy() local
1857 blkcg_scale_delay(struct blkcg_gq * blkg,u64 now) blkcg_scale_delay() argument
1914 blkcg_maybe_throttle_blkg(struct blkcg_gq * blkg,bool use_memdelay) blkcg_maybe_throttle_blkg() argument
1984 struct blkcg_gq *blkg; blkcg_maybe_throttle_current() local
2059 blkcg_add_delay(struct blkcg_gq * blkg,u64 now,u64 delta) blkcg_add_delay() argument
2067 blkg_lookup_tryget(struct blkcg_gq * blkg) blkg_lookup_tryget() argument
2093 struct blkcg_gq *blkg; blkg_tryget_closest() local
[all...]
H A Dblk-cgroup.h48 struct blkcg_gq *blkg; member
140 struct blkcg_gq *blkg; member
207 const char *blkg_dev_name(struct blkcg_gq *blkg);
219 struct blkcg_gq *blkg; member
263 struct blkcg_gq *blkg; in blkg_lookup() local
268 blkg = rcu_dereference_check(blkcg->blkg_hint, in blkg_lookup()
270 if (blkg && blkg->q == q) in blkg_lookup()
271 return blkg; in blkg_lookup()
273 blkg = radix_tree_lookup(&blkcg->blkg_tree, q->id); in blkg_lookup()
274 if (blkg && blkg->q != q) in blkg_lookup()
[all …]
H A Dblk-iolatency.c188 static inline struct iolatency_grp *blkg_to_lat(struct blkcg_gq *blkg) in blkg_to_lat() argument
190 return pd_to_lat(blkg_to_pd(blkg, &blkcg_policy_iolatency)); in blkg_to_lat()
466 struct blkcg_gq *blkg = bio->bi_blkg; in blkcg_iolatency_throttle() local
472 while (blkg && blkg->parent) { in blkcg_iolatency_throttle()
473 struct iolatency_grp *iolat = blkg_to_lat(blkg); in blkcg_iolatency_throttle()
475 blkg = blkg->parent; in blkcg_iolatency_throttle()
482 blkg = blkg->parent; in blkcg_iolatency_throttle()
517 struct blkcg_gq *blkg = lat_to_blkg(iolat); in iolatency_check_latencies() local
534 parent = blkg_to_lat(blkg->parent); in iolatency_check_latencies()
585 struct blkcg_gq *blkg; in blkcg_iolatency_done_bio() local
[all …]
H A Dbfq-cgroup.c284 static struct bfq_group *blkg_to_bfqg(struct blkcg_gq *blkg) in blkg_to_bfqg() argument
286 return pd_to_bfqg(blkg_to_pd(blkg, &blkcg_policy_bfq)); in blkg_to_bfqg()
533 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init() local
534 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_pd_init()
535 struct bfq_data *bfqd = blkg->q->elevator->elevator_data; in bfq_pd_init()
537 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init()
609 struct blkcg_gq *blkg = bio->bi_blkg; in bfq_bio_bfqg() local
612 while (blkg) { in bfq_bio_bfqg()
613 if (!data_race(blkg->online)) { in bfq_bio_bfqg()
614 blkg = blkg->parent; in bfq_bio_bfqg()
[all …]
H A Dblk-throttle.c86 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() local
88 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit()
96 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local
98 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit()
302 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local
303 struct throtl_data *td = blkg->q->td; in throtl_pd_init()
321 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && blkg->parent) in throtl_pd_init()
322 sq->parent_sq = &blkg_to_tg(blkg->parent)->service_queue; in throtl_pd_init()
1141 q = tg->pd.blkg->q; in throtl_pending_timer_fn()
1274 struct blkcg_gq *blkg; in tg_conf_updated() local
[all …]
H A Dblk-cgroup-rwstat.c46 const char *dname = blkg_dev_name(pd->blkg); in __blkg_prfill_rwstat()
96 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, in blkg_rwstat_recursive_sum() argument
106 blkg_for_each_descendant_pre(pos_blkg, pos_css, blkg) { in blkg_rwstat_recursive_sum()
H A Dblk-throttle.h138 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg) in blkg_to_tg() argument
140 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg()
H A Dblk-iocost.c684 static struct ioc_gq *blkg_to_iocg(struct blkcg_gq *blkg) in blkg_to_iocg() argument
686 return pd_to_iocg(blkg_to_pd(blkg, &blkcg_policy_iocost)); in blkg_to_iocg()
1236 struct blkcg_gq *blkg = iocg_to_blkg(iocg); in weight_updated() local
1237 struct ioc_cgrp *iocc = blkcg_to_iocc(blkg->blkcg); in weight_updated()
1336 struct blkcg_gq *blkg = iocg_to_blkg(iocg); in iocg_kick_delay() local
1385 blkcg_set_delay(blkg, delay * NSEC_PER_USEC); in iocg_kick_delay()
1393 blkcg_clear_delay(blkg); in iocg_kick_delay()
2689 struct blkcg_gq *blkg = bio->bi_blkg; in ioc_rqos_throttle() local
2691 struct ioc_gq *iocg = blkg_to_iocg(blkg); in ioc_rqos_throttle()
3020 struct blkcg_gq *blkg = pd_to_blkg(&iocg->pd); in ioc_pd_init() local
[all …]
/linux/tools/cgroup/
H A Diocost_monitor.py79 blkg = drgn.Object(prog, 'struct blkcg_gq',
81 if not blkg.address_:
84 self.blkgs.append((path if path else '/', blkg))
146 blkg = iocg.pd.blkg
170 if blkg.use_delay.counter.value_() != 0:
171 self.delay_ms = blkg.delay_nsec.counter.value_() / 1_000_000
229 blkg = drgn.Object(prog, 'struct blkcg_gq', address=ptr) variable
231 if devname == blkg.q.mq_kobj.parent.name.string_().decode('utf-8'):
232 q_id = blkg.q.id.value_()
233 if blkg.pd[plid]:
[all …]