Function report | 
Source Code:block\blk-mq.c | 
Create Date:2022-07-28 17:09:35 | 
| Last Modify:2020-03-17 23:18:05 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Update dispatch busy with the Exponential Weighted Moving Average(EWMA):* - EWMA is one simple way to compute running average value* - weight(7/8 and 1/8) is applied so that it can decrease exponentially* - take 4 as factor for avoiding to get too
Proto:static void blk_mq_update_dispatch_busy(struct blk_mq_hw_ctx *hctx, bool busy)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct blk_mq_hw_ctx * | hctx | |
| bool | busy | 
| 1155 | If elevator Then Return | 
| 1158 | ewma = @dispatch_busy: Number used by blk_mq_update_dispatch_busy() to* decide if the hw_queue is busy using Exponential Weighted Moving* Average algorithm. | 
| 1163 | ewma *= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT - 1 | 
| 1164 | If busy Then ewma += 1 << BLK_MQ_DISPATCH_BUSY_EWMA_FACTOR | 
| 1166 | ewma /= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT | 
| 1168 | @dispatch_busy: Number used by blk_mq_update_dispatch_busy() to* decide if the hw_queue is busy using Exponential Weighted Moving* Average algorithm. = ewma | 
| Name | Describe | 
|---|---|
| blk_mq_dispatch_rq_list | Returns true if we did some work AND can potentially do more. | 
| __blk_mq_issue_directly | 
| 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  |