Searched refs:blkg (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/block/ |
D | blk-cgroup.c | 72 static void blkg_free(struct blkcg_gq *blkg) in blkg_free() argument 76 if (!blkg) in blkg_free() 80 if (blkg->pd[i]) in blkg_free() 81 blkcg_policy[i]->pd_free_fn(blkg->pd[i]); in blkg_free() 83 blkg_rwstat_exit(&blkg->stat_ios); in blkg_free() 84 blkg_rwstat_exit(&blkg->stat_bytes); in blkg_free() 85 percpu_ref_exit(&blkg->refcnt); in blkg_free() 86 kfree(blkg); in blkg_free() 91 struct blkcg_gq *blkg = container_of(rcu, struct blkcg_gq, rcu_head); in __blkg_release() local 93 WARN_ON(!bio_list_empty(&blkg->async_bios)); in __blkg_release() [all …]
|
D | blk-iolatency.c | 182 static inline struct iolatency_grp *blkg_to_lat(struct blkcg_gq *blkg) in blkg_to_lat() argument 184 return pd_to_lat(blkg_to_pd(blkg, &blkcg_policy_iolatency)); in blkg_to_lat() 463 struct blkcg_gq *blkg = bio->bi_blkg; in blkcg_iolatency_throttle() local 469 while (blkg && blkg->parent) { in blkcg_iolatency_throttle() 470 struct iolatency_grp *iolat = blkg_to_lat(blkg); in blkcg_iolatency_throttle() 472 blkg = blkg->parent; in blkcg_iolatency_throttle() 479 blkg = blkg->parent; in blkcg_iolatency_throttle() 522 struct blkcg_gq *blkg = lat_to_blkg(iolat); in iolatency_check_latencies() local 539 parent = blkg_to_lat(blkg->parent); in iolatency_check_latencies() 590 struct blkcg_gq *blkg; in blkcg_iolatency_done_bio() local [all …]
|
D | bfq-cgroup.c | 289 static struct bfq_group *blkg_to_bfqg(struct blkcg_gq *blkg) in blkg_to_bfqg() argument 291 return pd_to_bfqg(blkg_to_pd(blkg, &blkcg_policy_bfq)); in blkg_to_bfqg() 525 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init() local 526 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_pd_init() 527 struct bfq_data *bfqd = blkg->q->elevator->elevator_data; in bfq_pd_init() 529 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init() 570 struct blkcg_gq *blkg; in bfq_lookup_bfqg() local 572 blkg = blkg_lookup(blkcg, bfqd->queue); in bfq_lookup_bfqg() 573 if (likely(blkg)) in bfq_lookup_bfqg() 574 return blkg_to_bfqg(blkg); in bfq_lookup_bfqg() [all …]
|
D | blk-throttle.c | 232 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg) in blkg_to_tg() argument 234 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg() 294 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() local 298 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit() 305 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit() 324 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local 328 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit() 335 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit() 521 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local 522 struct throtl_data *td = blkg->q->td; in throtl_pd_init() [all …]
|
D | blk-iocost.c | 639 static struct ioc_gq *blkg_to_iocg(struct blkcg_gq *blkg) in blkg_to_iocg() argument 641 return pd_to_iocg(blkg_to_pd(blkg, &blkcg_policy_iocost)); in blkg_to_iocg() 1014 struct blkcg_gq *blkg = iocg_to_blkg(iocg); in weight_updated() local 1015 struct ioc_cgrp *iocc = blkcg_to_iocc(blkg->blkcg); in weight_updated() 1218 struct blkcg_gq *blkg = iocg_to_blkg(iocg); in iocg_kick_delay() local 1231 blkcg_clear_delay(blkg); in iocg_kick_delay() 1234 if (!atomic_read(&blkg->use_delay) && in iocg_kick_delay() 1242 blkcg_add_delay(blkg, now->now_ns, cost_ns); in iocg_kick_delay() 1244 blkcg_use_delay(blkg); in iocg_kick_delay() 1680 struct blkcg_gq *blkg = bio->bi_blkg; in ioc_rqos_throttle() local [all …]
|
D | bio.c | 2028 static void __bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) in __bio_associate_blkg() argument 2032 bio->bi_blkg = blkg_tryget_closest(blkg); in __bio_associate_blkg() 2048 struct blkcg_gq *blkg; in bio_associate_blkg_from_css() local 2053 blkg = q->root_blkg; in bio_associate_blkg_from_css() 2055 blkg = blkg_lookup_create(css_to_blkcg(css), q); in bio_associate_blkg_from_css() 2057 __bio_associate_blkg(bio, blkg); in bio_associate_blkg_from_css()
|
/Linux-v5.4/include/linux/ |
D | blk-cgroup.h | 90 struct blkcg_gq *blkg; member 212 const char *blkg_dev_name(struct blkcg_gq *blkg); 228 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, 233 struct blkcg_gq *blkg; member 362 struct blkcg_gq *blkg; in __blkg_lookup() local 367 blkg = rcu_dereference(blkcg->blkg_hint); in __blkg_lookup() 368 if (blkg && blkg->q == q) in __blkg_lookup() 369 return blkg; in __blkg_lookup() 407 static inline struct blkg_policy_data *blkg_to_pd(struct blkcg_gq *blkg, in blkg_to_pd() argument 410 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd() [all …]
|
/Linux-v5.4/tools/cgroup/ |
D | iocost_monitor.py | 74 blkg = drgn.Object(prog, 'struct blkcg_gq', 76 if not blkg.address_: 79 self.blkgs.append((path if path else '/', blkg)) 143 blkg = iocg.pd.blkg 163 self.use_delay = blkg.use_delay.counter.value_() 164 self.delay_ms = blkg.delay_nsec.counter.value_() / 1_000_000 232 blkg = drgn.Object(prog, 'struct blkcg_gq', address=ptr) variable 234 if devname == blkg.q.kobj.parent.name.string_().decode('utf-8'): 235 q_id = blkg.q.id.value_() 236 if blkg.pd[plid]: [all …]
|