函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-iosched.c Create Date:2022-07-27 19:30:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Invoke __bfq_weights_tree_remove on bfqq and decrement the number* of active groups for each queue's inactive parent entity.

函数原型:void bfq_weights_tree_remove(struct bfq_data *bfqd, struct bfq_queue *bfqq)

返回类型:void

参数:

类型参数名称
struct bfq_data *bfqd
struct bfq_queue *bfqq
822  entity等于 parent entity, for hierarchical scheduling
825  sd等于* For non-leaf nodes in the hierarchy, the associated * scheduler queue, %NULL on leaf nodes.
827  如果head-of-line entity (see comments above) ity in service
839  退出
852  如果 flag, set if the entity is counted in groups_with_pending_reqs
853  flag, set if the entity is counted in groups_with_pending_reqs = false
854  * Number of groups with at least one descendant process that * has at least one request waiting for completion. Note that * this accounts for also requests already dispatched, but not * yet completed. Therefore this number of groups may differ * (be larger自减
864  Decrement the weight counter associated with the queue, and, if the* counter reaches 0, remove the counter from the tree.* See the comments to the function bfq_weights_tree_add() for considerations* about overhead.
调用者
名称描述
bfq_completed_request
bfq_del_bfqq_busyCalled when the bfqq no longer has requests pending, remove it from* the service tree. As a special case, it can be invoked during an* expiration.