函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blk-cgroup.h Create Date:2022-07-27 06:56:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blkcg_unuse_delay

函数原型:static inline int blkcg_unuse_delay(struct blkcg_gq *blkg)

返回类型:int

参数:

类型参数名称
struct blkcg_gq *blkg
647  old等于atomic_read( & use_delay)
649  如果old恒等于0则返回:0
659 old循环
660  cur等于atomic_cmpxchg( & use_delay, old, old - 1)
661  如果cur恒等于old退出
663  old等于cur
666  如果old恒等于0则返回:0
668  如果old恒等于1则atomic_dec( & If there is block congestion on this cgroup. )
670  返回:1
调用者
名称描述
scale_changeChange the queue depth of the iolatency_grp. We add/subtract 1/16th of the* queue depth at a time so we don't get wild swings and hopefully dial in to* fairer distribution of the overall queue depth.