函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ioc_rqos_done

函数原型:static void ioc_rqos_done(struct rq_qos *rqos, struct request *rq)

返回类型:void

参数:

类型参数名称
struct rq_qos *rqos
struct request *rq
1847  ioc等于accessors and helpers
1851  如果非enabled或非alloc_time_ns或非 Time that this request was allocated for this IO. 则返回
1855  : & == REQ_OP_READ
1856  pidx等于QOS_RLAT
1857  rw等于generic data direction definitions
1858  退出
1859  : & == REQ_OP_WRITE
1860  pidx等于QOS_WLAT
1861  rw等于WRITE
1862  退出
1863  默认
1864  返回
1867  on_q_ns等于ktime_get_ns()减alloc_time_ns
1868  rq_wait_ns等于 Time that this request was allocated for this IO. alloc_time_ns
1870  如果on_q_ns小于等于qos[pidx]乘NSEC_PER_USECthis_cpu_inc(nr_met)
1872  否则this_cpu_inc(nr_missed)
1875  this_cpu_add(rq_wait_ns, rq_wait_ns)