函数逻辑报告 |
Source Code:block\blk-iolatency.c |
Create Date:2022-07-27 19:21:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:blkcg_iolatency_done_bio
函数原型:static void blkcg_iolatency_done_bio(struct rq_qos *rqos, struct bio *bio)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rq_qos * | rqos | |
struct bio * | bio |
595 | issue_as_root等于_issue_as_root_blkg - see if this bio needs to be issued as root blkg*@return: true if this bio needs to be submitted with the root blkg context |
596 | bool enabled = false |
597 | inflight等于0 |
600 | 如果非blkg或非bio_flagged(bio, BIO_TRACKED)则返回 |
604 | 如果非iolat则返回 |
608 | 如果非enabled则返回 |
612 | iolat等于blkg_to_lat(blkg) |
613 | 如果非iolat则 |
615 | 继续下一循环 |
619 | inflight等于atomic_dec_return( & inflight) |
620 | WARN_ON_ONCE(inflight < 0) |
625 | 如果min_lat_nsec且bi_status不等于BLK_STS_AGAIN则 |
626 | iolatency_record_time(iolat, & bi_issue, now, issue_as_root) |
628 | window_start等于atomic64_read( & window_start) |
629 | 如果now大于window_start且now减window_start大于等于cur_win_nsec则 |
631 | 如果atomic64_cmpxchg( & window_start, window_start, now)恒等于window_start则iolatency_check_latencies(iolat, now) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |