Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct blk_mq_hw_ctx *hctx
boolbusy
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.
1160  If Not ewma && Not busy Then Return
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
Caller
NameDescribe
blk_mq_dispatch_rq_listReturns true if we did some work AND can potentially do more.
__blk_mq_issue_directly