函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:throtl_tg_can_upgrade

函数原型:static bool throtl_tg_can_upgrade(struct throtl_grp *tg)

返回类型:bool

参数:

类型参数名称
struct throtl_grp *tg
1850  sq等于 this group's service queue
1857  read_limit等于 internally used bytes per second rate limits [generic data direction definitions ][LIMIT_LOW]或 internally used IOPS limits [generic data direction definitions ][LIMIT_LOW]
1858  write_limit等于 internally used bytes per second rate limits [WRITE][LIMIT_LOW]或 internally used IOPS limits [WRITE][LIMIT_LOW]
1859  如果非read_limit且非write_limit则返回:true
1861  如果read_limit number of queued bios [generic data direction definitions ]且非write_limit number of queued bios [WRITE]的值则返回:true
1864  如果write_limit number of queued bios [WRITE]且非read_limit number of queued bios [generic data direction definitions ]的值则返回:true
1868  如果time_after_eq(jiffies, g should not be an intermediate node + throtl_slice)且throtl_tg_is_idle(tg)则返回:true
1872  返回:false
调用者
名称描述
throtl_hierarchy_can_upgrade