Home
last modified time | relevance | path

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

/linux-4.19.296/block/
Dblk-cgroup.c68 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 …]
Dblk-iolatency.c172 static inline struct iolatency_grp *blkg_to_lat(struct blkcg_gq *blkg) in blkg_to_lat() argument
174 return pd_to_lat(blkg_to_pd(blkg, &blkcg_policy_iolatency)); in blkg_to_lat()
406 struct blkcg_gq *blkg; in blkcg_iolatency_throttle() local
416 blkg = blkg_lookup(blkcg, q); in blkcg_iolatency_throttle()
417 if (unlikely(!blkg)) { in blkcg_iolatency_throttle()
420 blkg = blkg_lookup_create(blkcg, q); in blkcg_iolatency_throttle()
421 if (IS_ERR(blkg)) in blkcg_iolatency_throttle()
422 blkg = NULL; in blkcg_iolatency_throttle()
426 if (!blkg) in blkcg_iolatency_throttle()
430 bio_associate_blkg(bio, blkg); in blkcg_iolatency_throttle()
[all …]
Dblk-throttle.c233 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 …]
Dbfq-cgroup.c222 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 …]
Dcfq-iosched.c625 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 …]
Dbio.c2020 int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) in bio_associate_blkg() argument
2024 if (!blkg_try_get(blkg)) in bio_associate_blkg()
2026 bio->bi_blkg = blkg; in bio_associate_blkg()
Dblk-core.c149 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-4.19.296/include/linux/
Dblk-cgroup.h92 struct blkcg_gq *blkg; member
202 const char *blkg_dev_name(struct blkcg_gq *blkg);
219 u64 blkg_stat_recursive_sum(struct blkcg_gq *blkg,
221 struct blkg_rwstat blkg_rwstat_recursive_sum(struct blkcg_gq *blkg,
226 struct blkcg_gq *blkg; member
314 struct blkcg_gq *blkg; in __blkg_lookup() local
319 blkg = rcu_dereference(blkcg->blkg_hint); in __blkg_lookup()
320 if (blkg && blkg->q == q) in __blkg_lookup()
321 return blkg; in __blkg_lookup()
363 static inline struct blkg_policy_data *blkg_to_pd(struct blkcg_gq *blkg, in blkg_to_pd() argument
[all …]
Dbio.h558 int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg);
Dblkdev.h75 struct blkcg_gq *blkg; /* blkg this request pool belongs to */ member