Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:throtl_upgrade_check

Proto:static void throtl_upgrade_check(struct throtl_grp *tg)

Type:void

Parameter:

TypeParameterName
struct throtl_grp *tg
1918  now = jiffies
1920  If limit_index != LIMIT_LOW Then Return
1923  If 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) Then Return
1926  last_check_time = now
1928  If Not time_after_eq(now, __tg_last_low_overflow_time(tg) + throtl_slice) Then Return
1932  If throtl_can_upgrade( throtl_data this group belongs to , NULL) Then throtl_upgrade_state( throtl_data this group belongs to )
Caller
NameDescribe
blk_throtl_bio