Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:weight_updated

Proto:static void weight_updated(struct ioc_gq *iocg)

Type:void

Parameter:

TypeParameterName
struct ioc_gq *iocg
1013  ioc = ioc
1014  blkg = iocg_to_blkg(iocg)
1015  iocc = blkcg_to_iocc(blkcg)
1018  lockdep_assert_held( & lock)
1020  weight = If * A iocg can get its weight from two sources - an explicit * per-device-cgroup configuration or the default weight of the * cgroup. `cfg_weight` is the explicit per-device-cgroup * configuration. `weight` is the effective considering both * sources. * When Else dfl_weight
1021  If weight != weight && active Then propagate_active_weight(iocg, weight, DIV64_U64_ROUND_UP(inuse * weight, weight))
1024  weight = weight
Caller
NameDescribe
ioc_pd_init
ioc_weight_write