Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tg_update_disptime

Proto:static void tg_update_disptime(struct throtl_grp *tg)

Type:void

Parameter:

TypeParameterName
struct throtl_grp *tg
1098  sq = this group's service queue
1099  read_wait = -1 , write_wait = -1 , min_wait = -1
1102  bio = hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peek
1103  If bio Then 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
1106  bio = hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peek
1107  If bio Then 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
1110  min_wait = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(read_wait, write_wait)
1111  disptime = jiffies + min_wait
1114  throtl_dequeue_tg(tg)
1115  * Dispatch time in jiffies. This is the estimated time when group * will unthrottle and is ready to dispatch more bio. It is used as * key to sort active groups in service tree. = disptime
1116  throtl_enqueue_tg(tg)
1119  flags &= ~ bio_lists[] became non-empty
Caller
NameDescribe
throtl_select_dispatch
throtl_pending_timer_fn
tg_conf_updated
blk_throtl_bio