Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wb_timer_fn

Proto:static void wb_timer_fn(struct blk_stat_callback *cb)

Type:void

Parameter:

TypeParameterName
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  Case status == LAT_EXCEEDED
371  scale_down(rwb, true)
372  Break
373  Case status == LAT_OK
374  scale_up(rwb)
375  Break
376  Case status == LAT_UNKNOWN_WRITES
382  scale_up(rwb)
383  Break
384  Case status == LAT_UNKNOWN
385  If ++* Number of consecutive periods where we don't have enough * information to make a firm scale up/down decision. < RWB_UNKNOWN_BUMP Then Break
392  If scale_step > 0 Then scale_up(rwb)
394  Else if scale_step < 0 Then scale_down(rwb, false)
396  Break
397  Default
398  Break
404  If scale_step || inflight Then rwb_arm_timer(rwb)