Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iolatency_record_time

Proto:static void iolatency_record_time(struct iolatency_grp *iolat, struct bio_issue *issue, u64 now, bool issue_as_root)

Type:void

Parameter:

TypeParameterName
struct iolatency_grp *iolat
struct bio_issue *issue
u64now
boolissue_as_root
489  start = bio_issue_time(issue)
496  now = __bio_issue_time(now)
498  If now <= start Then Return
501  req_time = now - start
507  If Value for the false possibility is greater at compile time(issue_as_root && max_depth != UINT_MAX) Then
508  sub = min_lat_nsec
509  If req_time < sub Then lkcg_add_delay - add delay to this blkg*@blkg: blkg of interest*@now: the current time in nanoseconds*@delta: how many nanoseconds of delay to add* Charge @delta to the blkg's current delay accumulation. This is used to
511  Return
514  latency_stat_record_time(iolat, req_time)
Caller
NameDescribe
blkcg_iolatency_done_bio