Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Only 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.

Proto:static void blk_mq_do_dispatch_sched(struct blk_mq_hw_ctx *hctx)

Type:void

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
90  q = @queue: Pointer to the request queue that owns this hardware context.
91  e = elevator
92  LIST_HEAD(rq_list)
94  Do
97  If has_work && Not has_work(hctx) Then Break
100  If Not blk_mq_get_dispatch_budget(hctx) Then Break
103  rq = dispatch_request(hctx)
104  If Not rq Then
106  Break
114  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
115  When Returns true if we did some work AND can potentially do more. cycle
Caller
NameDescribe
blk_mq_sched_dispatch_requests