函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:throtl_select_dispatch

函数原型:static int throtl_select_dispatch(struct throtl_service_queue *parent_sq)

返回类型:int

参数:

类型参数名称
struct throtl_service_queue *parent_sq
1209  nr_disp等于0
1211  当1循环
1212  tg等于throtl_rb_first(parent_sq)
1215  如果非tg退出
1218  如果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.)则退出
1221  throtl_dequeue_tg(tg)
1223  nr_disp加等于throtl_dispatch_tg(tg)
1225  sq等于 this group's service queue
1226  如果 number of queued bios [0]或 number of queued bios [1]则tg_update_disptime(tg)
1229  如果nr_disp大于等于Total max dispatch from all groups in one round 退出
1233  返回:nr_disp
调用者
名称描述
throtl_pending_timer_fn
throtl_upgrade_state