Lines Matching refs:bfqq
222 void bfqg_stats_update_io_add(struct bfq_group *bfqg, struct bfq_queue *bfqq, in bfqg_stats_update_io_add() argument
227 if (!(bfqq == ((struct bfq_data *)bfqg->bfqd)->in_service_queue)) in bfqg_stats_update_io_add()
228 bfqg_stats_set_start_group_wait_time(bfqg, bfqq_group(bfqq)); in bfqg_stats_update_io_add()
303 struct bfq_group *bfqq_group(struct bfq_queue *bfqq) in bfqq_group() argument
305 struct bfq_entity *group_entity = bfqq->entity.parent; in bfqq_group()
309 bfqq->bfqd->root_group; in bfqq_group()
421 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity() local
425 if (bfqq) { in bfq_init_entity()
426 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity()
427 bfqq->ioprio_class = bfqq->new_ioprio_class; in bfq_init_entity()
643 void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_bfqq_move() argument
646 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_move()
647 struct bfq_group *old_parent = bfqq_group(bfqq); in bfq_bfqq_move()
660 if (bfqq == &bfqd->oom_bfqq) in bfq_bfqq_move()
666 bfqq->ref++; in bfq_bfqq_move()
674 if (bfqq == bfqd->in_service_queue) in bfq_bfqq_move()
678 if (bfq_bfqq_busy(bfqq)) in bfq_bfqq_move()
679 bfq_deactivate_bfqq(bfqd, bfqq, false, false); in bfq_bfqq_move()
685 entity->parent->last_bfqq_created == bfqq) in bfq_bfqq_move()
687 else if (bfqd->last_bfqq_created == bfqq) in bfq_bfqq_move()
695 if (bfq_bfqq_busy(bfqq)) { 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()
704 bfq_put_queue(bfqq); in bfq_bfqq_move()
740 struct bfq_queue *bfqq; in __bfq_bic_change_cgroup() local
747 for (bfqq = sync_bfqq; bfqq; bfqq = bfqq->new_bfqq) in __bfq_bic_change_cgroup()
748 if (bfqq->entity.sched_data != in __bfq_bic_change_cgroup()
751 if (bfqq) { in __bfq_bic_change_cgroup()
871 struct bfq_queue *bfqq; in bfq_reparent_leaf_entity() local
886 bfqq = bfq_entity_to_bfqq(child_entity); in bfq_reparent_leaf_entity()
887 bfq_bfqq_move(bfqd, bfqq, bfqd->root_group); in bfq_reparent_leaf_entity()
1442 void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_bfqq_move() argument
1447 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity() local
1451 if (bfqq) { in bfq_init_entity()
1452 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity()
1453 bfqq->ioprio_class = bfqq->new_ioprio_class; in bfq_init_entity()
1470 struct bfq_group *bfqq_group(struct bfq_queue *bfqq) in bfqq_group() argument
1472 return bfqq->bfqd->root_group; in bfqq_group()