函数逻辑报告 |
Source Code:block\blk-iolatency.c |
Create Date:2022-07-27 19:20:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:We scale the qd down faster than we scale up, so we need to use this helper* to adjust the scale_cookie accordingly so we don't prematurely get* scale_cookie at DEFAULT_SCALE_COOKIE and unthrottle too much
函数原型:static void scale_cookie_change(struct blk_iolatency *blkiolat, struct child_latency_info *lat_info, bool up)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct blk_iolatency * | blkiolat | |
| struct child_latency_info * | lat_info | |
| bool | up |
| 327 | qd等于 Max # of requests |
| 328 | scale等于scale_amount(qd, up) |
| 331 | diff等于0 |
| 336 | 如果up则 |
| 337 | 如果scale加old大于DEFAULT_SCALE_COOKIE则atomic_set( & Cookie to tell if we need to scale up or down. , DEFAULT_SCALE_COOKIE) |
| 340 | 否则如果diff大于qd则atomic_inc( & Cookie to tell if we need to scale up or down. ) |
| 344 | 否则 |
| 354 | 否则 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |