Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_dequeue_from_ctx

Proto:struct request *blk_mq_dequeue_from_ctx(struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *start)

Type:struct request

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct blk_mq_ctx *start
1002  off = If start Then index_hw[@type: HCTX_TYPE_* flags. Type of hardware queue. ] Else 0
1003  struct dispatch_rq_data data = {hctx = hctx, rq = NULL, }
1008  __sbitmap_for_each_set() - Iterate over each set bit in a &struct sbitmap
1011  Return rq
Caller
NameDescribe
blk_mq_do_dispatch_ctxOnly SCSI implements .get_budget and .put_budget, and SCSI restarts* its queue by itself in its completion handler, so we don't need to* restart queue if .get_budget() returns BLK_STS_NO_RESOURCE.