函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-27 18:44:56
Last Modify:2020-03-17 23:18:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void blk_mq_update_dispatch_busy(struct blk_mq_hw_ctx *hctx, bool busy)

返回类型:void

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
boolbusy
1155  如果elevator则返回
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.
1160  如果非ewma且非busy则返回
1163  ewma乘等于BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT减1
1164  如果busyewma加等于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
调用者
名称描述
blk_mq_dispatch_rq_listReturns true if we did some work AND can potentially do more.
__blk_mq_issue_directly