Lines Matching refs:blkg

188 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()
525 struct blkcg_gq *blkg = lat_to_blkg(iolat); in iolatency_check_latencies() local
542 parent = blkg_to_lat(blkg->parent); in iolatency_check_latencies()
593 struct blkcg_gq *blkg; in blkcg_iolatency_done_bio() local
601 blkg = bio->bi_blkg; in blkcg_iolatency_done_bio()
602 if (!blkg || !bio_flagged(bio, BIO_QOS_THROTTLED)) in blkcg_iolatency_done_bio()
613 while (blkg && blkg->parent) { in blkcg_iolatency_done_bio()
614 iolat = blkg_to_lat(blkg); in blkcg_iolatency_done_bio()
616 blkg = blkg->parent; in blkcg_iolatency_done_bio()
639 blkg = blkg->parent; in blkcg_iolatency_done_bio()
662 struct blkcg_gq *blkg; in blkiolatency_timer_fn() local
667 blkg_for_each_descendant_pre(blkg, pos_css, in blkiolatency_timer_fn()
678 if (!blkg_tryget(blkg)) in blkiolatency_timer_fn()
681 iolat = blkg_to_lat(blkg); in blkiolatency_timer_fn()
715 blkg_put(blkg); in blkiolatency_timer_fn()
787 static void iolatency_set_min_lat_nsec(struct blkcg_gq *blkg, u64 val) in iolatency_set_min_lat_nsec() argument
789 struct iolatency_grp *iolat = blkg_to_lat(blkg); in iolatency_set_min_lat_nsec()
803 blkcg_clear_delay(blkg); in iolatency_set_min_lat_nsec()
809 static void iolatency_clear_scaling(struct blkcg_gq *blkg) in iolatency_clear_scaling() argument
811 if (blkg->parent) { in iolatency_clear_scaling()
812 struct iolatency_grp *iolat = blkg_to_lat(blkg->parent); in iolatency_clear_scaling()
831 struct blkcg_gq *blkg; in iolatency_set_limit() local
859 iolat = blkg_to_lat(ctx.blkg); in iolatency_set_limit()
885 blkg = ctx.blkg; in iolatency_set_limit()
888 iolatency_set_min_lat_nsec(blkg, lat_val); in iolatency_set_limit()
890 iolatency_clear_scaling(blkg); in iolatency_set_limit()
901 const char *dname = blkg_dev_name(pd->blkg); in iolatency_prfill_limit()
985 struct blkcg_gq *blkg = lat_to_blkg(iolat); in iolatency_pd_init() local
986 struct rq_qos *rqos = iolat_rq_qos(blkg->q); in iolatency_pd_init()
991 if (blk_queue_nonrot(blkg->q)) in iolatency_pd_init()
1014 if (blkg->parent && blkg_to_pd(blkg->parent, &blkcg_policy_iolatency)) { in iolatency_pd_init()
1015 struct iolatency_grp *parent = blkg_to_lat(blkg->parent); in iolatency_pd_init()
1028 struct blkcg_gq *blkg = lat_to_blkg(iolat); in iolatency_pd_offline() local
1030 iolatency_set_min_lat_nsec(blkg, 0); in iolatency_pd_offline()
1031 iolatency_clear_scaling(blkg); in iolatency_pd_offline()