Searched refs:blkg (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/block/ |
D | blk-cgroup.c | 68 static void blkg_free(struct blkcg_gq *blkg) in blkg_free() argument 72 if (!blkg) in blkg_free() 76 if (blkg->pd[i]) in blkg_free() 77 blkcg_policy[i]->pd_free_fn(blkg->pd[i]); in blkg_free() 79 if (blkg->blkcg != &blkcg_root) in blkg_free() 80 blk_exit_rl(blkg->q, &blkg->rl); in blkg_free() 82 blkg_rwstat_exit(&blkg->stat_ios); in blkg_free() 83 blkg_rwstat_exit(&blkg->stat_bytes); in blkg_free() 84 kfree(blkg); in blkg_free() 98 struct blkcg_gq *blkg; in blkg_alloc() local [all …]
|
D | blk-iolatency.c | 165 static inline struct iolatency_grp *blkg_to_lat(struct blkcg_gq *blkg) in blkg_to_lat() argument 167 return pd_to_lat(blkg_to_pd(blkg, &blkcg_policy_iolatency)); in blkg_to_lat() 399 struct blkcg_gq *blkg; in blkcg_iolatency_throttle() local 409 blkg = blkg_lookup(blkcg, q); in blkcg_iolatency_throttle() 410 if (unlikely(!blkg)) { in blkcg_iolatency_throttle() 413 blkg = blkg_lookup_create(blkcg, q); in blkcg_iolatency_throttle() 414 if (IS_ERR(blkg)) in blkcg_iolatency_throttle() 415 blkg = NULL; in blkcg_iolatency_throttle() 419 if (!blkg) in blkcg_iolatency_throttle() 423 bio_associate_blkg(bio, blkg); in blkcg_iolatency_throttle() [all …]
|
D | blk-throttle.c | 233 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg) in blkg_to_tg() argument 235 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg() 295 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() local 299 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit() 306 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit() 325 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local 329 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit() 336 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit() 520 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local 521 struct throtl_data *td = blkg->q->td; in throtl_pd_init() [all …]
|
D | bfq-cgroup.c | 222 static struct bfq_group *blkg_to_bfqg(struct blkcg_gq *blkg) in blkg_to_bfqg() argument 224 return pd_to_bfqg(blkg_to_pd(blkg, &blkcg_policy_bfq)); in blkg_to_bfqg() 457 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init() local 458 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_pd_init() 459 struct bfq_data *bfqd = blkg->q->elevator->elevator_data; in bfq_pd_init() 461 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init() 502 struct blkcg_gq *blkg; in bfq_lookup_bfqg() local 504 blkg = blkg_lookup(blkcg, bfqd->queue); in bfq_lookup_bfqg() 505 if (likely(blkg)) in bfq_lookup_bfqg() 506 return blkg_to_bfqg(blkg); in bfq_lookup_bfqg() [all …]
|
D | cfq-iosched.c | 625 static inline struct cfq_group *blkg_to_cfqg(struct blkcg_gq *blkg) in blkg_to_cfqg() argument 627 return pd_to_cfqg(blkg_to_pd(blkg, &blkcg_policy_cfq)); in blkg_to_cfqg() 1635 struct cfq_group_data *cgd = blkcg_to_cfqgd(pd->blkg->blkcg); in cfq_pd_init() 1683 struct blkcg_gq *blkg; in cfq_lookup_cfqg() local 1685 blkg = blkg_lookup(blkcg, cfqd->queue); in cfq_lookup_cfqg() 1686 if (likely(blkg)) in cfq_lookup_cfqg() 1687 return blkg_to_cfqg(blkg); in cfq_lookup_cfqg() 1789 cfqg = blkg_to_cfqg(ctx.blkg); in __cfqg_set_weight_device() 1826 struct blkcg_gq *blkg; in __cfq_set_weight() local 1845 hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) { in __cfq_set_weight() [all …]
|
D | bio.c | 2014 int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) in bio_associate_blkg() argument 2018 if (!blkg_try_get(blkg)) in bio_associate_blkg() 2020 bio->bi_blkg = blkg; in bio_associate_blkg()
|
D | blk-core.c | 149 clear_wb_congested(rl->blkg->wb_congested, sync); in blk_clear_congested() 163 set_wb_congested(rl->blkg->wb_congested, sync); in blk_set_congested()
|
/Linux-v4.19/include/linux/ |
D | blk-cgroup.h | 91 struct blkcg_gq *blkg; member 201 const char *blkg_dev_name(struct blkcg_gq *blkg); 218 u64 blkg_stat_recursive_sum(struct blkcg_gq *blkg, 220 struct blkg_rwstat blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, 225 struct blkcg_gq *blkg; member 313 struct blkcg_gq *blkg; in __blkg_lookup() local 318 blkg = rcu_dereference(blkcg->blkg_hint); in __blkg_lookup() 319 if (blkg && blkg->q == q) in __blkg_lookup() 320 return blkg; in __blkg_lookup() 362 static inline struct blkg_policy_data *blkg_to_pd(struct blkcg_gq *blkg, in blkg_to_pd() argument [all …]
|
D | bio.h | 558 int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg);
|
D | blkdev.h | 67 struct blkcg_gq *blkg; /* blkg this request pool belongs to */ member
|