Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__blk_mq_try_issue_directly

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

Type:blk_status_t

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct request *rq
blk_qc_t *cookie
boolbypass_insert
boollast
1795  q = q
1796  bool run_queue = true
1805  If blk_mq_hctx_stopped(hctx) || blk_queue_quiesced(q) Then
1806  run_queue = false
1807  bypass_insert = false
1808  Go to insert
1811  If elevator && Not bypass_insert Then Go to insert
1814  If Not blk_mq_get_dispatch_budget(hctx) Then Go to insert
1817  If Not blk_mq_get_driver_tag(rq) Then
1818  blk_mq_put_dispatch_budget(hctx)
1819  Go to insert
1822  Return __blk_mq_issue_directly(hctx, rq, cookie, last)
1823  insert :
1824  If bypass_insert Then Return BLK_STS_RESOURCE
1827  Should only be used carefully, when the caller knows we want to* bypass a potential IO scheduler on the target device.
1828  Return BLK_STS_OK
Caller
NameDescribe
blk_mq_try_issue_directly
blk_mq_request_issue_directly