Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/block/
H A Dblk-cgroup.c73 static void blkg_free(struct blkcg_gq *blkg) in blkg_free() argument
77 if (!blkg) in blkg_free()
81 if (blkg->pd[i]) in blkg_free()
82 blkcg_policy[i]->pd_free_fn(blkg->pd[i]); in blkg_free()
84 free_percpu(blkg->iostat_cpu); 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()
96 css_put(&blkg->blkcg->css); in __blkg_release()
[all …]
H A Dblk-iolatency.c187 static inline struct iolatency_grp *blkg_to_lat(struct blkcg_gq *blkg) in blkg_to_lat() argument
189 return pd_to_lat(blkg_to_pd(blkg, &blkcg_policy_iolatency)); in blkg_to_lat()
468 struct blkcg_gq *blkg = bio->bi_blkg; in blkcg_iolatency_throttle() local
474 while (blkg && blkg->parent) { in blkcg_iolatency_throttle()
475 struct iolatency_grp *iolat = blkg_to_lat(blkg); in blkcg_iolatency_throttle()
477 blkg = blkg->parent; in blkcg_iolatency_throttle()
484 blkg = blkg->parent; in blkcg_iolatency_throttle()
527 struct blkcg_gq *blkg = lat_to_blkg(iolat); in iolatency_check_latencies() local
544 parent = blkg_to_lat(blkg->parent); in iolatency_check_latencies()
595 struct blkcg_gq *blkg; in blkcg_iolatency_done_bio() local
[all …]
H A Dbfq-cgroup.c289 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()
542 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init() local
543 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_pd_init()
544 struct bfq_data *bfqd = blkg->q->elevator->elevator_data; in bfq_pd_init()
546 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init()
610 struct blkcg_gq *blkg = bio->bi_blkg; in bfq_bio_bfqg() local
613 while (blkg) { in bfq_bio_bfqg()
614 if (!blkg->online) { in bfq_bio_bfqg()
615 blkg = blkg->parent; in bfq_bio_bfqg()
[all …]
H A Dblk-cgroup-rwstat.c52 const char *dname = blkg_dev_name(pd->blkg); in __blkg_prfill_rwstat()
103 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, in blkg_rwstat_recursive_sum() argument
110 lockdep_assert_held(&blkg->q->queue_lock); in blkg_rwstat_recursive_sum()
114 blkg_for_each_descendant_pre(pos_blkg, pos_css, blkg) { in blkg_rwstat_recursive_sum()
H A Dblk-throttle.c239 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg) in blkg_to_tg() argument
241 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg()
301 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() local
305 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit()
312 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit()
331 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local
335 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit()
342 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit()
542 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local
543 struct throtl_data *td = blkg->q->td; in throtl_pd_init()
[all …]
H A Dblk-iocost.c688 static struct ioc_gq *blkg_to_iocg(struct blkcg_gq *blkg) in blkg_to_iocg() argument
690 return pd_to_iocg(blkg_to_pd(blkg, &blkcg_policy_iocost)); in blkg_to_iocg()
1183 struct blkcg_gq *blkg = iocg_to_blkg(iocg); in weight_updated() local
1184 struct ioc_cgrp *iocc = blkcg_to_iocc(blkg->blkcg); in weight_updated()
1283 struct blkcg_gq *blkg = iocg_to_blkg(iocg); in iocg_kick_delay() local
1324 blkcg_set_delay(blkg, delay * NSEC_PER_USEC); in iocg_kick_delay()
1332 blkcg_clear_delay(blkg); in iocg_kick_delay()
2547 struct blkcg_gq *blkg = bio->bi_blkg; in ioc_rqos_throttle() local
2549 struct ioc_gq *iocg = blkg_to_iocg(blkg); in ioc_rqos_throttle()
2924 struct blkcg_gq *blkg = pd_to_blkg(&iocg->pd); in ioc_pd_init() local
[all …]
H A Dmq-deadline-cgroup.c36 return container_of(blkcg_to_cpd(pd->blkg->blkcg, &dd_blkcg_policy), in dd_blkcg_from_pd()
H A Dblk-cgroup-rwstat.h48 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol,
H A Dblk-ioprio.c91 return blkcg_to_ioprio_blkcg(pd->blkg->blkcg); in ioprio_blkcg_from_bio()
/OK3568_Linux_fs/kernel/include/linux/
H A Dblk-cgroup.h90 struct blkcg_gq *blkg; member
194 const char *blkg_dev_name(struct blkcg_gq *blkg);
204 struct blkcg_gq *blkg; member
333 struct blkcg_gq *blkg; in __blkg_lookup() local
338 blkg = rcu_dereference(blkcg->blkg_hint); in __blkg_lookup()
339 if (blkg && blkg->q == q) in __blkg_lookup()
340 return blkg; in __blkg_lookup()
378 static inline struct blkg_policy_data *blkg_to_pd(struct blkcg_gq *blkg, in blkg_to_pd() argument
381 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd()
398 return pd ? pd->blkg : NULL; in pd_to_blkg()
[all …]
/OK3568_Linux_fs/kernel/tools/cgroup/
H A Diocost_monitor.py74 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
165 if blkg.use_delay.counter.value_() != 0:
166 self.delay_ms = blkg.delay_nsec.counter.value_() / 1_000_000
222 blkg = drgn.Object(prog, 'struct blkcg_gq', address=ptr) variable
224 if devname == blkg.q.kobj.parent.name.string_().decode('utf-8'):
225 q_id = blkg.q.id.value_()
226 if blkg.pd[plid]:
[all …]