函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iolatency_record_time

函数原型:static void iolatency_record_time(struct iolatency_grp *iolat, struct bio_issue *issue, u64 now, bool issue_as_root)

返回类型:void

参数:

类型参数名称
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  如果now小于等于start则返回
501  req_time等于nowstart
507  如果此条件成立可能性小(为编译器优化)(issue_as_root && max_depth != UINT_MAX)则
508  sub等于min_lat_nsec
509  如果req_time小于sublkcg_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  返回
514  latency_stat_record_time(iolat, req_time)
调用者
名称描述
blkcg_iolatency_done_bio