Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:throtl_dispatch_tg

Proto:static int throtl_dispatch_tg(struct throtl_grp *tg)

Type:int

Parameter:

TypeParameterName
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  When (bio = hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peek) && Returns 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 cycle
1187  tg_dispatch_one_bio(tg, Return the data direction, READ or WRITE.(bio))
1188  nr_reads++
1190  If nr_reads >= max_nr_reads Then Break
1194  When (bio = hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peek) && Returns 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 cycle
1197  tg_dispatch_one_bio(tg, Return the data direction, READ or WRITE.(bio))
1198  nr_writes++
1200  If nr_writes >= max_nr_writes Then Break
1204  Return nr_reads + nr_writes
Caller
NameDescribe
throtl_select_dispatch