Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Update @iocg's `active` and `inuse` to @active and @inuse, update level* weight sums and propagate upwards accordingly.

Proto:static void __propagate_active_weight(struct ioc_gq *iocg, unsigned int active, unsigned int inuse)

Type:void

Parameter:

TypeParameterName
struct ioc_gq *iocg
unsigned intactive
unsigned intinuse
896  ioc = ioc
899  lockdep_assert_held( & lock)
901  inuse = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(active, inuse)
903  When lvl >= 0 cycle
904  parent = ancestors[lvl]
905  child = ancestors[lvl + 1]
906  parent_active = 0 , parent_inuse = 0
909  see __propagate_active_weight() and current_hweight() for details += active - active
910  child_inuse_sum += inuse - inuse
912  active = active
913  inuse = inuse
928  If parent_active == active && parent_inuse == inuse Then Break
932  active = parent_active
933  inuse = parent_inuse
936  weights_updated = true
Caller
NameDescribe
propagate_active_weight
ioc_timer_fn