函数逻辑报告 |
Source Code:block\blk-throttle.c |
Create Date:2022-07-27 19:18:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static bool tg_may_dispatch(struct throtl_grp *tg, struct bio *bio, unsigned long *wait)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct throtl_grp * | tg | |
struct bio * | bio | |
unsigned long * | wait |
997 | BUG_ON( number of queued bios [rw] && bio != hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peek) |
1001 | 如果tg_bps_limit(tg, rw)恒等于U64_MAX且tg_iops_limit(tg, rw)恒等于UINT_MAX则 |
1015 | 如果Determine if previously allocated or extended slice is complete or not 且非 number of queued bios [rw]则throtl_start_new_slice(tg, rw) |
1017 | 否则 |
1018 | 如果time_before(slice_end[rw], jiffies + throtl_slice)则throtl_extend_slice(tg, rw, jiffies + throtl_slice) |
1024 | 如果tg_with_in_bps_limit(tg, bio, & bps_wait)且tg_with_in_iops_limit(tg, bio, & iops_wait)则 |
1036 | 如果time_before(slice_end[rw], jiffies + max_wait)则throtl_extend_slice(tg, rw, jiffies + max_wait) |
1039 | 返回:false |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |