函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:throtl_downgrade_check

函数原型:static void throtl_downgrade_check(struct throtl_grp *tg)

返回类型:void

参数:

类型参数名称
struct throtl_grp *tg
2009  now等于jiffies
2011  如果limit_index不等于LIMIT_MAX或非limit_valid[LIMIT_LOW]则返回
2014  如果非链表为空则返回
2016  如果These inlines deal with timer wrapping correctly. You are * strongly encouraged to use them* 1. Because people otherwise forget* 2. Because if the timer wrap changes in future you won't have to* alter your driver code.(last_check_time + throtl_slice, now)则返回
2019  elapsed_time等于nowlast_check_time
2020  last_check_time等于now
2022  如果time_before(now, g should not be an intermediate node + throtl_slice)则返回
2026  如果 internally used bytes per second rate limits [generic data direction definitions ][LIMIT_LOW]则
2027  bps等于last_bytes_disp[generic data direction definitions ]乘HZ
2028  do_div() is NOT a C function(bps, elapsed_time)
2029  如果bps大于等于 internally used bytes per second rate limits [generic data direction definitions ][LIMIT_LOW]则last_low_overflow_time[generic data direction definitions ]等于now
2033  如果 internally used bytes per second rate limits [WRITE][LIMIT_LOW]则
2034  bps等于last_bytes_disp[WRITE]乘HZ
2035  do_div() is NOT a C function(bps, elapsed_time)
2036  如果bps大于等于 internally used bytes per second rate limits [WRITE][LIMIT_LOW]则last_low_overflow_time[WRITE]等于now
2040  如果 internally used IOPS limits [generic data direction definitions ][LIMIT_LOW]则
2041  iops等于last_io_disp[generic data direction definitions ]乘HZelapsed_time
2042  如果iops大于等于 internally used IOPS limits [generic data direction definitions ][LIMIT_LOW]则last_low_overflow_time[generic data direction definitions ]等于now
2046  如果 internally used IOPS limits [WRITE][LIMIT_LOW]则
2047  iops等于last_io_disp[WRITE]乘HZelapsed_time
2048  如果iops大于等于 internally used IOPS limits [WRITE][LIMIT_LOW]则last_low_overflow_time[WRITE]等于now
2056  如果throtl_hierarchy_can_downgrade(tg)则throtl_downgrade_state( throtl_data this group belongs to , LIMIT_LOW)
2059  last_bytes_disp[generic data direction definitions ]等于0
2060  last_bytes_disp[WRITE]等于0
2061  last_io_disp[generic data direction definitions ]等于0
2062  last_io_disp[WRITE]等于0
调用者
名称描述
blk_throtl_bio