Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_get_dispatch_budget

Proto:static inline bool blk_mq_get_dispatch_budget(struct blk_mq_hw_ctx *hctx)

Type:bool

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
192  q = @queue: Pointer to the request queue that owns this hardware context.
194  If get_budget Then Return get_budget(hctx)
196  Return true
Caller
NameDescribe
blk_mq_dispatch_rq_listReturns true if we did some work AND can potentially do more.
__blk_mq_try_issue_directly
blk_mq_do_dispatch_schedOnly 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.
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.