| Function report | 
| Source Code: block\blk-iocost.c | Create Date:2022-07-28 17:48:54 | 
| 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_merge
Proto:static void ioc_rqos_merge(struct rq_qos *rqos, struct request *rq, struct bio *bio)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct rq_qos * | rqos | |
| struct request * | rq | |
| struct bio * | bio | 
| 1803 | bio_end = bio_end_sector(bio) | 
| 1809 | If Not enabled || Not this iocg's depth in the hierarchy and ancestors including self Then Return | 
| 1812 | abs_cost = calc_vtime_cost(bio, iocg, true) | 
| 1813 | If Not abs_cost Then Return | 
| 1817 | current_hweight(iocg, NULL, & hw_inuse) | 
| 1818 | cost = Scale @abs_cost to the inverse of @hw_inuse. The lower the hierarchical* weight, the more expensive each IO. Must round up. | 
| 1833 | Else atomic64_add(abs_cost, & abs_vdebt) | 
| 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 |