Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:throtl_select_dispatch

Proto:static int throtl_select_dispatch(struct throtl_service_queue *parent_sq)

Type:int

Parameter:

TypeParameterName
struct throtl_service_queue *parent_sq
1209  nr_disp = 0
1211  When 1 cycle
1212  tg = throtl_rb_first(parent_sq)
1215  If Not tg Then Break
1218  If time_before(jiffies, * 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.) Then Break
1221  throtl_dequeue_tg(tg)
1223  nr_disp += throtl_dispatch_tg(tg)
1225  sq = this group's service queue
1226  If number of queued bios [0] || number of queued bios [1] Then tg_update_disptime(tg)
1229  If nr_disp >= Total max dispatch from all groups in one round Then Break
1233  Return nr_disp
Caller
NameDescribe
throtl_pending_timer_fn
throtl_upgrade_state