Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ioc_rqos_done

Proto:static void ioc_rqos_done(struct rq_qos *rqos, struct request *rq)

Type:void

Parameter:

TypeParameterName
struct rq_qos *rqos
struct request *rq
1847  ioc = accessors and helpers
1851  If Not enabled || Not alloc_time_ns || Not Time that this request was allocated for this IO. Then Return
1855  Case & == REQ_OP_READ
1856  pidx = QOS_RLAT
1857  rw = generic data direction definitions
1858  Break
1859  Case & == REQ_OP_WRITE
1860  pidx = QOS_WLAT
1861  rw = WRITE
1862  Break
1863  Default
1864  Return
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  If on_q_ns <= qos[pidx] * NSEC_PER_USEC Then this_cpu_inc(nr_met)
1872  Else this_cpu_inc(nr_missed)
1875  this_cpu_add(rq_wait_ns, rq_wait_ns)