Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-iosched.c Create Date:2022-07-28 17:54:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void __bfq_weights_tree_remove(struct bfq_data *bfqd, struct bfq_queue *bfqq, struct rb_root_cached *root)

Type:void

Parameter:

TypeParameterName
struct bfq_data *bfqd
struct bfq_queue *bfqq
struct rb_root_cached *root
800  If Not pointer to the weight counter associated with this entity Then Return
803  r of active queues with this weight --
804  If r of active queues with this weight > 0 Then Go to reset_entity_pointer
807  rb_erase_cached( & Weights tree member (see bfq_data's @queue_weights_tree), root)
808  kfree(pointer to the weight counter associated with this entity )
810  reset_entity_pointer :
811  pointer to the weight counter associated with this entity = NULL
812  Task holds one reference to the queue, dropped when task exits. Each rq* in-flight on this queue also holds a reference, dropped when rq is freed.* Scheduler lock must be held here. Recall not to use bfqq after calling* this function on it.
Caller
NameDescribe
bfq_weights_tree_removeInvoke __bfq_weights_tree_remove on bfqq and decrement the number* of active groups for each queue's inactive parent entity.
__bfq_entity_update_weight_prioUpdate weight and priority of entity