函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-iolatency.c Create Date:2022-07-27 19:20:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Change 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.

函数原型:static void scale_change(struct iolatency_grp *iolat, bool up)

返回类型:void

参数:

类型参数名称
struct iolatency_grp *iolat
boolup
367  qd等于 Max # of requests
368  scale等于scale_amount(qd, up)
369  old等于max_depth
371  如果old大于qdold等于qd
374  如果up
375  如果old恒等于1且blkcg_unuse_delay(lat_to_blkg(iolat))则返回
378  如果old小于qd
379  old加等于scale
380  old等于两数取小(old, qd)
381  max_depth等于old
382  wake_up_all( & wait)
384  否则
385  old右移等于1位
386  max_depth等于两数取大(old, 1UL)
调用者
名称描述
check_scale_changeCheck our parent and see if the scale cookie has changed.