函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:wb_timer_fn

函数原型:static void wb_timer_fn(struct blk_stat_callback *cb)

返回类型:void

参数:

类型参数名称
struct blk_stat_callback *cb
354  rwb等于@data: Private pointer for the user.
355  rqd等于rq_depth
356  inflight等于wbt_inflight(rwb)
359  status等于latency_exceeded(rwb, @stat: Array of statistics buckets.)
361  trace_wbt_timer(backing_dev_info, status, scale_step, inflight)
370  :status恒等于LAT_EXCEEDED
371  scale_down(rwb, true)
372  退出
373  :status恒等于LAT_OK
374  scale_up(rwb)
375  退出
376  :status恒等于LAT_UNKNOWN_WRITES
382  scale_up(rwb)
383  退出
384  :status恒等于LAT_UNKNOWN
385  如果* Number of consecutive periods where we don't have enough * information to make a firm scale up/down decision.先自加小于RWB_UNKNOWN_BUMP退出
392  如果scale_step大于0则scale_up(rwb)
394  否则如果scale_step小于0则scale_down(rwb, false)
396  退出
397  默认
398  退出
404  如果scale_stepinflightrwb_arm_timer(rwb)