Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return true, if we can't increase the depth further by scaling

Proto:bool rq_depth_calc_max_depth(struct rq_depth *rqd)

Type:bool

Parameter:

TypeParameterName
struct rq_depth *rqd
119  bool ret = false
128  If queue_depth == 1 Then
129  If scale_step > 0 Then max_depth = 1
131  Else
132  max_depth = 2
133  ret = true
135  Else
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  If scale_step > 0 Then depth = 1 + ( depth - 1 >> min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(31, scale_step))
147  Else if scale_step < 0 Then
148  maxd = 3 * queue_depth / 4
150  depth = 1 + ( depth - 1 << -scale_step)
151  If depth > maxd Then
152  depth = maxd
153  ret = true
157  max_depth = depth
160  Return ret
Caller
NameDescribe
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