Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct rq_depth * | rqd |
119 | bool ret = false |
128 | If queue_depth == 1 Then |
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) |
160 | Return ret |
Name | Describe |
---|---|
rq_depth_scale_up | Returns true on success and false if scaling up wasn't possible |
rq_depth_scale_down | Scale 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |