Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:throtl_can_upgrade

Proto:static bool throtl_can_upgrade(struct throtl_data *td, struct throtl_grp *this_tg)

Type:bool

Parameter:

TypeParameterName
struct throtl_data *td
struct throtl_grp *this_tg
1893  If limit_index != LIMIT_LOW Then Return false
1896  If time_before(jiffies, low_downgrade_time + throtl_slice) Then Return false
1899  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1900  lkg_for_each_descendant_post - post-order walk of a blkg's descendants*@d_blkg: loop cursor pointing to the current descendant*@pos_css: used for iteration*@p_blkg: target blkg to walk descendants of* Similar to blkg_for_each_descendant_pre() but performs (blkg, pos_css, root_blkg)
1901  tg = blkg_to_tg(blkg)
1903  If tg == this_tg Then Continue
1905  If Not list_empty - tests whether a list is empty*@head: the list to test. Then Continue
1907  If Not throtl_hierarchy_can_upgrade(tg) Then
1909  Return false
1912  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1913  Return true
Caller
NameDescribe
throtl_pending_timer_fn
throtl_upgrade_check
blk_throtl_bio