函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq-sched.c Create Date:2022-07-27 18:50:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static void blk_mq_do_dispatch_sched(struct blk_mq_hw_ctx *hctx)

返回类型:void

参数:

类型参数名称
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  循环
97  如果has_work且非has_work(hctx)则退出
100  如果非blk_mq_get_dispatch_budget(hctx)则退出
103  rq等于dispatch_request(hctx)
104  如果非rq
106  退出
114  添加链表项
115 Returns true if we did some work AND can potentially do more.循环
调用者
名称描述
blk_mq_sched_dispatch_requests