Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bfq_reset_rate_computation

Proto:static void bfq_reset_rate_computation(struct bfq_data *bfqd, struct request *rq)

Type:void

Parameter:

TypeParameterName
struct bfq_data *bfqd
struct request *rq
3022  If (rq != NULL) Then
3023  time of last rq dispatch in current observation interval (ns) = time of first rq dispatch in current observation interval (ns) = ktime_get_ns()
3024  number of samples in current observation interval = 1
3025  num of samples of seq dispatches in current observation interval = 0
3026  total num of sectors transferred in current observation interval = max rq size seen during current observation interval (sectors) = blk_rq_sectors(rq)
3028  Else number of samples in current observation interval = 0
3031  bfq_log(bfqd, "reset_rate_computation at end, sample %u/%u tot_sects %llu", number of samples in current observation interval , num of samples of seq dispatches in current observation interval , total num of sectors transferred in current observation interval )
Caller
NameDescribe
bfq_update_rate_reset
bfq_update_peak_rateUpdate the read/write peak rate (the main quantity used for* auto-tuning, see update_thr_responsiveness_params())