Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blk-cgroup.h Create Date:2022-07-28 05:57:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blkcg_unuse_delay

Proto:static inline int blkcg_unuse_delay(struct blkcg_gq *blkg)

Type:int

Parameter:

TypeParameterName
struct blkcg_gq *blkg
647  old = atomic_read( & use_delay)
649  If old == 0 Then Return 0
659  When old cycle
660  cur = atomic_cmpxchg( & use_delay, old, old - 1)
661  If cur == old Then Break
663  old = cur
666  If old == 0 Then Return 0
668  If old == 1 Then atomic_dec( & If there is block congestion on this cgroup. )
670  Return 1
Caller
NameDescribe
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.