Function report |
Source Code:block\blk-iocost.c |
Create Date:2022-07-28 17:47:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ioc_autop_idx
Proto:static int ioc_autop_idx(struct ioc *ioc)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ioc * | ioc |
| 727 | If Not blk_queue_nonrot(q) Then Return AUTOP_HDD |
| 731 | If blk_queue_depth(q) == 1 Then Return AUTOP_SSD_QD1 |
| 735 | If idx < AUTOP_SSD_DFL Then Return AUTOP_SSD_DFL |
| 739 | If user_qos_params || user_cost_model Then Return idx |
| 745 | now_ns = ktime_get_ns() |
| 747 | If too_fast_vrate_pct && too_fast_vrate_pct <= vrate_pct Then |
| 748 | If Not autop_too_fast_at Then autop_too_fast_at = now_ns |
| 750 | If now_ns - autop_too_fast_at >= AUTOP_CYCLE_NSEC Then Return idx + 1 |
| 752 | Else |
| 753 | autop_too_fast_at = 0 |
| 756 | If too_slow_vrate_pct && too_slow_vrate_pct >= vrate_pct Then |
| 757 | If Not autop_too_slow_at Then autop_too_slow_at = now_ns |
| 759 | If now_ns - autop_too_slow_at >= AUTOP_CYCLE_NSEC Then Return idx - 1 |
| 761 | Else |
| 762 | autop_too_slow_at = 0 |
| 765 | Return idx |
| Name | Describe |
|---|---|
| ioc_refresh_params |
| 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 |