函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__blk_mq_issue_directly

函数原型:static blk_status_t __blk_mq_issue_directly(struct blk_mq_hw_ctx *hctx, struct request *rq, blk_qc_t *cookie, bool last)

返回类型:blk_status_t

参数:

类型参数名称
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  :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  退出
1776  :ret恒等于BLK_STS_RESOURCE
1777  :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  退出
1781  默认
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  退出
1787  返回:ret
调用者
名称描述
__blk_mq_try_issue_directly