Lines Matching refs:bfqd

227 	if (!(bfqq == ((struct bfq_data *)bfqg->bfqd)->in_service_queue))  in bfqg_stats_update_io_add()
309 bfqq->bfqd->root_group; in bfqq_group()
541 struct bfq_data *bfqd = blkg->q->elevator->elevator_data; in bfq_pd_init() local
553 bfqg->bfqd = bfqd; in bfq_pd_init()
584 static void bfq_link_bfqg(struct bfq_data *bfqd, struct bfq_group *bfqg) in bfq_link_bfqg() argument
598 if (curr_bfqg != bfqd->root_group) { in bfq_link_bfqg()
601 parent = bfqd->root_group; in bfq_link_bfqg()
607 struct bfq_group *bfq_bio_bfqg(struct bfq_data *bfqd, struct bio *bio) in bfq_bio_bfqg() argument
625 &bfqg_to_blkg(bfqd->root_group)->blkcg->css); in bfq_bio_bfqg()
626 return bfqd->root_group; in bfq_bio_bfqg()
643 void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_bfqq_move() argument
660 if (bfqq == &bfqd->oom_bfqq) in bfq_bfqq_move()
674 if (bfqq == bfqd->in_service_queue) in bfq_bfqq_move()
675 bfq_bfqq_expire(bfqd, bfqd->in_service_queue, in bfq_bfqq_move()
679 bfq_deactivate_bfqq(bfqd, bfqq, false, false); in bfq_bfqq_move()
687 else if (bfqd->last_bfqq_created == bfqq) in bfq_bfqq_move()
688 bfqd->last_bfqq_created = NULL; in bfq_bfqq_move()
696 if (unlikely(!bfqd->nonrot_with_queueing)) in bfq_bfqq_move()
697 bfq_pos_tree_add_move(bfqd, bfqq); in bfq_bfqq_move()
698 bfq_activate_bfqq(bfqd, bfqq); in bfq_bfqq_move()
701 if (!bfqd->in_service_queue && !bfqd->rq_in_driver) in bfq_bfqq_move()
702 bfq_schedule_dispatch(bfqd); in bfq_bfqq_move()
717 static void *__bfq_bic_change_cgroup(struct bfq_data *bfqd, in __bfq_bic_change_cgroup() argument
730 bfq_release_process_ref(bfqd, async_bfqq); in __bfq_bic_change_cgroup()
738 bfq_bfqq_move(bfqd, sync_bfqq, bfqg); in __bfq_bic_change_cgroup()
764 bfq_release_process_ref(bfqd, sync_bfqq); in __bfq_bic_change_cgroup()
775 struct bfq_data *bfqd = bic_to_bfqd(bic); in bfq_bic_update_cgroup() local
776 struct bfq_group *bfqg = bfq_bio_bfqg(bfqd, bio); in bfq_bic_update_cgroup()
785 if (unlikely(!bfqd) || likely(bic->blkcg_serial_nr == serial_nr)) in bfq_bic_update_cgroup()
792 bfq_link_bfqg(bfqd, bfqg); in bfq_bic_update_cgroup()
793 __bfq_bic_change_cgroup(bfqd, bic, bfqg); in bfq_bic_update_cgroup()
867 static void bfq_reparent_leaf_entity(struct bfq_data *bfqd, in bfq_reparent_leaf_entity() argument
887 bfq_bfqq_move(bfqd, bfqq, bfqd->root_group); in bfq_reparent_leaf_entity()
897 static void bfq_reparent_active_queues(struct bfq_data *bfqd, in bfq_reparent_active_queues() argument
906 bfq_reparent_leaf_entity(bfqd, entity, ioprio_class); in bfq_reparent_active_queues()
909 bfq_reparent_leaf_entity(bfqd, in bfq_reparent_active_queues()
926 struct bfq_data *bfqd = bfqg->bfqd; in bfq_pd_offline() local
931 spin_lock_irqsave(&bfqd->lock, flags); in bfq_pd_offline()
955 bfq_reparent_active_queues(bfqd, bfqg, st, i); in bfq_pd_offline()
974 bfq_put_async_queues(bfqd, bfqg); in bfq_pd_offline()
977 spin_unlock_irqrestore(&bfqd->lock, flags); in bfq_pd_offline()
987 void bfq_end_wr_async(struct bfq_data *bfqd) in bfq_end_wr_async() argument
991 list_for_each_entry(blkg, &bfqd->queue->blkg_list, q_node) { in bfq_end_wr_async()
994 bfq_end_wr_async_queues(bfqd, bfqg); in bfq_end_wr_async()
996 bfq_end_wr_async_queues(bfqd, bfqd->root_group); in bfq_end_wr_async()
1277 struct bfq_group *bfq_create_group_hierarchy(struct bfq_data *bfqd, int node) in bfq_create_group_hierarchy() argument
1281 ret = blkcg_activate_policy(bfqd->queue, &blkcg_policy_bfq); in bfq_create_group_hierarchy()
1285 return blkg_to_bfqg(bfqd->queue->root_blkg); in bfq_create_group_hierarchy()
1442 void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_bfqq_move() argument
1460 void bfq_end_wr_async(struct bfq_data *bfqd) in bfq_end_wr_async() argument
1462 bfq_end_wr_async_queues(bfqd, bfqd->root_group); in bfq_end_wr_async()
1465 struct bfq_group *bfq_bio_bfqg(struct bfq_data *bfqd, struct bio *bio) in bfq_bio_bfqg() argument
1467 return bfqd->root_group; in bfq_bio_bfqg()
1472 return bfqq->bfqd->root_group; in bfqq_group()
1477 struct bfq_group *bfq_create_group_hierarchy(struct bfq_data *bfqd, int node) in bfq_create_group_hierarchy() argument