Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:latency_exceeded

Proto:static int latency_exceeded(struct rq_wb *rwb, struct blk_rq_stat *stat)

Type:int

Parameter:

TypeParameterName
struct rq_wb *rwb
struct blk_rq_stat *stat
236  bdi = backing_dev_info
237  rqd = rq_depth
249  thislat = rwb_sync_issue_lat(rwb)
250  If thislat > current window size || thislat > min_lat_nsec && Not nr_samples Then
252  wbt_lat - trace latency event*@lat: latency trigger
253  Return LAT_EXCEEDED
259  If Not stat_sample_valid(stat) Then
266  If nr_samples || If a task was rate throttled in balance_dirty_pages() within the last* second or so, use that to indicate a higher cleaning rate. || wbt_inflight(rwb) Then Return LAT_UNKNOWN_WRITES
269  Return LAT_UNKNOWN
275  If min > min_lat_nsec Then
276  wbt_lat - trace latency event*@lat: latency trigger
277  wbt_stat - trace stats for blk_wb*@stat: array of read/write stats
278  Return LAT_EXCEEDED
281  If scale_step Then wbt_stat - trace stats for blk_wb*@stat: array of read/write stats
284  Return LAT_OK
Caller
NameDescribe
wb_timer_fn