Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:10:14
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__blk_mq_issue_directly

Proto:static blk_status_t __blk_mq_issue_directly(struct blk_mq_hw_ctx *hctx, struct request *rq, blk_qc_t *cookie, bool last)

Type:blk_status_t

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct request *rq
blk_qc_t *cookie
boollast
1755  q = q
1756  struct blk_mq_queue_data bd = {rq = rq, last = last, }
1763  new_cookie = request_to_qc_t(hctx, rq)
1770  ret = queue_rq(hctx, & bd)
1772  Case ret == BLK_STS_OK
1773  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
1774  cookie = new_cookie
1775  Break
1776  Case ret == BLK_STS_RESOURCE
1777  Case ret == BLK_STS_DEV_RESOURCE is returned from the driver to the block layer if* device related resources are unavailable, but the driver can guarantee* that the queue will be rerun in the future once resources become* available again
1778  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
1779  __blk_mq_requeue_request(rq)
1780  Break
1781  Default
1782  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
1783  cookie = BLK_QC_T_NONE
1784  Break
1787  Return ret
Caller
NameDescribe
__blk_mq_try_issue_directly