函数逻辑报告 |
Source Code:block\blk-iocost.c |
Create Date:2022-07-27 19:24:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ioc_rqos_throttle
函数原型:static void ioc_rqos_throttle(struct rq_qos *rqos, struct bio *bio)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rq_qos * | rqos | |
struct bio * | bio |
1682 | ioc等于accessors and helpers |
1683 | iocg等于blkg_to_iocg(blkg) |
1694 | 如果非iocg_activate(iocg, & now)则返回 |
1698 | abs_cost等于calc_vtime_cost(bio, iocg, false) |
1699 | 如果非abs_cost则返回 |
1702 | to detect randio 等于bio_end_sector(bio) |
1705 | current_hweight(iocg, & hw_active, & hw_inuse) |
1707 | 如果hw_inuse小于hw_active且time_after_eq64(vtime + inuse_margin_vtime, vnow)则 |
1709 | TRACE_IOCG_PATH(inuse_reset, iocg, & now, inuse, weight, hw_inuse, hw_active) |
1711 | spin_lock_irq( & lock) |
1712 | propagate_active_weight(iocg, weight, weight) |
1713 | spin_unlock_irq( & lock) |
1714 | current_hweight(iocg, & hw_active, & hw_inuse) |
1717 | cost等于Scale @abs_cost to the inverse of @hw_inuse. The lower the hierarchical* weight, the more expensive each IO. Must round up. |
1727 | iocg_commit_bio(iocg, bio, cost) |
1728 | 返回 |
1742 | atomic64_add(abs_cost, & abs_vdebt) |
1746 | 返回 |
1762 | spin_lock_irq( & lock) |
1770 | 如果此条件成立可能性小(为编译器优化)(链表为空)则 |
1776 | init_waitqueue_func_entry( & wait, iocg_wake_fn) |
1780 | committed = false |
1782 | __add_wait_queue_entry_tail( & waitq, & wait) |
1783 | iocg_kick_waitq(iocg, & now) |
1785 | spin_unlock_irq( & lock) |
1787 | 当(true)循环 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |