Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_updated_next_req - update the queue after a new next_rq selection

Proto:static void bfq_updated_next_req(struct bfq_data *bfqd, struct bfq_queue *bfqq)

Type:void

Parameter:

TypeParameterName
struct bfq_data *bfqd
struct bfq_queue *bfqq
942  entity = ity representing this queue in the scheduler
943  next_rq = fifo isn't expired, next request to serve
946  If Not next_rq Then Return
949  If bfqq == bfq_queue in service Then Return
956  new_budget = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, maximum budget allowed from the feedback mechanism , see the definition of bfq_async_charge_factor for details ), amount of service received during the last service slot )
960  If budget, used also to calculate F_i: F_i = S_i + @budget / @weight != new_budget Then
961  budget, used also to calculate F_i: F_i = S_i + @budget / @weight = new_budget
962  bfq_log_bfqq(bfqd, bfqq, "updated next rq: new budget %lu", new_budget)
964  bfq_requeue_bfqq(bfqd, bfqq, false)
Caller
NameDescribe
bfq_add_request
bfq_remove_request
bfq_request_merged