函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The processes associated with bfqq may happen to generate their* cumulative I/O at a lower rate than the rate at which the device* could serve the same I/O. This is rather probable, e.g., if only

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

返回类型:void

参数:

类型参数名称
struct bfq_data *bfqd
struct bfq_queue *bfqq
5834  tot_time_ns等于ktime_get_ns()减 time of last transition from empty to non-empty (ns)
5835  old_limit等于limit for request injection
5837  如果last total-service-time sample, see bfq_update_inject_limit() 大于0且* True if some request has been injected during the last service hole.
5838  threshold等于last total-service-time sample, see bfq_update_inject_limit() 乘3右移1位
5840  如果tot_time_ns大于等于thresholdold_limit大于0则
5843  否则如果tot_time_ns小于thresholdold_limit小于等于* Maximum number of requests in driver in the last *@hw_tag_samples completed requests.limit for request injection 自加
5860  如果last total-service-time sample, see bfq_update_inject_limit() 恒等于0且 number of requests dispatched and waiting for completion 恒等于1或tot_time_ns小于last total-service-time sample, see bfq_update_inject_limit()
5869  last total-service-time sample, see bfq_update_inject_limit() 等于tot_time_ns
5870  否则如果非* True if some request has been injected during the last service hole. number of requests dispatched and waiting for completion 恒等于1则last total-service-time sample, see bfq_update_inject_limit() 等于tot_time_ns
5884  * If set, then bfq_update_inject_limit() is invoked when * waited_rq is eventually completed. = NULL
5885  * True if some request has been injected during the last service hole. = false
调用者
名称描述
bfq_finish_requeue_requestHandle either a requeue or a finish for rq. The things to do are* the same in both cases: all references to rq are to be dropped. In* particular, rq is considered completed from the point of view of* the scheduler.