Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:10:18
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 void blk_mq_try_issue_directly(struct blk_mq_hw_ctx *hctx, struct request *rq, blk_qc_t *cookie)

Type:void

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct request *rq
blk_qc_t *cookie
1837  might_sleep_if(@flags: BLK_MQ_F_* flags. Defines the behaviour of the queue. & BLK_MQ_F_BLOCKING)
1839  hctx_lock(hctx, & srcu_idx)
1841  ret = __blk_mq_try_issue_directly(hctx, rq, cookie, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., true)
1842  If ret == BLK_STS_RESOURCE || 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 Then Should only be used carefully, when the caller knows we want to* bypass a potential IO scheduler on the target device.
1844  Else if ret != BLK_STS_OK Then blk_mq_end_request(rq, ret)
1847  hctx_unlock(hctx, srcu_idx)
Caller
NameDescribe
blk_mq_make_request