Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:throtl_tg_can_upgrade

Proto:static bool throtl_tg_can_upgrade(struct throtl_grp *tg)

Type:bool

Parameter:

TypeParameterName
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  If Not read_limit && Not write_limit Then Return true
1861  If read_limit && number of queued bios [generic data direction definitions ] && ( Not write_limit || number of queued bios [WRITE]) Then Return true
1864  If write_limit && number of queued bios [WRITE] && ( Not read_limit || number of queued bios [generic data direction definitions ]) Then Return true
1868  If time_after_eq(jiffies, g should not be an intermediate node + throtl_slice) && throtl_tg_is_idle(tg) Then Return true
1872  Return false
Caller
NameDescribe
throtl_hierarchy_can_upgrade