bfq-iosched.h (3eb66e91a25497065c5322b1268cbc3953642227) | bfq-iosched.h (73d58118498b14e4d2f2391105459b997b586ddc) |
---|---|
1/* 2 * Header file for the BFQ I/O scheduler: data structures and 3 * prototypes of interface functions among BFQ components. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License as 7 * published by the Free Software Foundation; either version 2 of the 8 * License, or (at your option) any later version. --- 487 unchanged lines hidden (view full) --- 496 * is reset. After this flag is reset for the entity, 497 * num_groups_with_pending_reqs won't be decremented any 498 * longer in case a new descendant queue of the entity remains 499 * with no request waiting for completion. 500 */ 501 unsigned int num_groups_with_pending_reqs; 502 503 /* | 1/* 2 * Header file for the BFQ I/O scheduler: data structures and 3 * prototypes of interface functions among BFQ components. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License as 7 * published by the Free Software Foundation; either version 2 of the 8 * License, or (at your option) any later version. --- 487 unchanged lines hidden (view full) --- 496 * is reset. After this flag is reset for the entity, 497 * num_groups_with_pending_reqs won't be decremented any 498 * longer in case a new descendant queue of the entity remains 499 * with no request waiting for completion. 500 */ 501 unsigned int num_groups_with_pending_reqs; 502 503 /* |
504 * Number of bfq_queues containing requests (including the 505 * queue in service, even if it is idling). | 504 * Per-class (RT, BE, IDLE) number of bfq_queues containing 505 * requests (including the queue in service, even if it is 506 * idling). |
506 */ | 507 */ |
507 int busy_queues; | 508 unsigned int busy_queues[3]; |
508 /* number of weight-raised busy @bfq_queues */ 509 int wr_busy_queues; 510 /* number of queued requests */ 511 int queued; 512 /* number of requests dispatched and waiting for completion */ 513 int rq_in_driver; 514 515 /* --- 453 unchanged lines hidden (view full) --- 969 for (; entity ; entity = NULL) 970 971#define for_each_entity_safe(entity, parent) \ 972 for (parent = NULL; entity ; entity = parent) 973#endif /* CONFIG_BFQ_GROUP_IOSCHED */ 974 975struct bfq_group *bfq_bfqq_to_bfqg(struct bfq_queue *bfqq); 976struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity); | 509 /* number of weight-raised busy @bfq_queues */ 510 int wr_busy_queues; 511 /* number of queued requests */ 512 int queued; 513 /* number of requests dispatched and waiting for completion */ 514 int rq_in_driver; 515 516 /* --- 453 unchanged lines hidden (view full) --- 970 for (; entity ; entity = NULL) 971 972#define for_each_entity_safe(entity, parent) \ 973 for (parent = NULL; entity ; entity = parent) 974#endif /* CONFIG_BFQ_GROUP_IOSCHED */ 975 976struct bfq_group *bfq_bfqq_to_bfqg(struct bfq_queue *bfqq); 977struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity); |
978unsigned int bfq_tot_busy_queues(struct bfq_data *bfqd); |
|
977struct bfq_service_tree *bfq_entity_service_tree(struct bfq_entity *entity); 978struct bfq_entity *bfq_entity_of(struct rb_node *node); 979unsigned short bfq_ioprio_to_weight(int ioprio); 980void bfq_put_idle_entity(struct bfq_service_tree *st, 981 struct bfq_entity *entity); 982struct bfq_service_tree * 983__bfq_entity_update_weight_prio(struct bfq_service_tree *old_st, 984 struct bfq_entity *entity, --- 50 unchanged lines hidden --- | 979struct bfq_service_tree *bfq_entity_service_tree(struct bfq_entity *entity); 980struct bfq_entity *bfq_entity_of(struct rb_node *node); 981unsigned short bfq_ioprio_to_weight(int ioprio); 982void bfq_put_idle_entity(struct bfq_service_tree *st, 983 struct bfq_entity *entity); 984struct bfq_service_tree * 985__bfq_entity_update_weight_prio(struct bfq_service_tree *old_st, 986 struct bfq_entity *entity, --- 50 unchanged lines hidden --- |