Function report |
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 activity | Download SCCT | Chinese |
Name:ioc_rqos_done
Proto:static void ioc_rqos_done(struct rq_qos *rqos, struct request *rq)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| 1859 | Case & == REQ_OP_WRITE |
| 1863 | Default |
| 1864 | Return |
| 1867 | on_q_ns = ktime_get_ns() - 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) |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |