函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return true, if we can't increase the depth further by scaling

函数原型:bool rq_depth_calc_max_depth(struct rq_depth *rqd)

返回类型:bool

参数:

类型参数名称
struct rq_depth *rqd
119  bool ret = false
128  如果queue_depth恒等于1则
129  如果scale_step大于0则max_depth等于1
131  否则
132  max_depth等于2
133  ret = true
135  否则
143  depth等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedint, default_depth, queue_depth)
145  如果scale_step大于0则depth等于1加depth减1右移两数取小(31, scale_step)位的值
147  否则如果scale_step小于0则
148  maxd等于3乘queue_depth除4
150  depth等于1加depth减1左移负scale_step位的值
151  如果depth大于maxd
152  depth等于maxd
153  ret = true
157  max_depth等于depth
160  返回:ret
调用者
名称描述
rq_depth_scale_upReturns true on success and false if scaling up wasn't possible
rq_depth_scale_downScale rwb down. If 'hard_throttle' is set, do it quicker, since we* had a latency violation. Returns true on success and returns false if* scaling down wasn't possible.
__wbt_update_limits