函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:throtl_dispatch_tg

函数原型:static int throtl_dispatch_tg(struct throtl_grp *tg)

返回类型:int

参数:

类型参数名称
struct throtl_grp *tg
1176  sq等于 this group's service queue
1177  nr_reads等于0, nr_writes等于0
1178  max_nr_reads等于Max dispatch from a group in 1 round 乘3除4
1179  max_nr_writes等于Max dispatch from a group in 1 round max_nr_reads
1184 bio等于hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peekReturns whether one can dispatch a bio or not. Also returns approx number* of jiffies to wait before this bio is with-in IO rate and can be dispatched循环
1187  tg_dispatch_one_bio(tg, Return the data direction, READ or WRITE.(bio))
1188  nr_reads自加
1190  如果nr_reads大于等于max_nr_reads退出
1194 bio等于hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peekReturns whether one can dispatch a bio or not. Also returns approx number* of jiffies to wait before this bio is with-in IO rate and can be dispatched循环
1197  tg_dispatch_one_bio(tg, Return the data direction, READ or WRITE.(bio))
1198  nr_writes自加
1200  如果nr_writes大于等于max_nr_writes退出
1204  返回:nr_readsnr_writes
调用者
名称描述
throtl_select_dispatch