Function report |
Source Code:block\blk-iolatency.c |
Create Date:2022-07-28 17:45:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blkcg_iolatency_done_bio
Proto:static void blkcg_iolatency_done_bio(struct rq_qos *rqos, struct bio *bio)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If Not blkg || Not bio_flagged(bio, BIO_TRACKED) Then Return |
604 | If Not iolat Then Return |
607 | enabled = blk_iolatency_enabled(blkiolat) |
608 | If Not enabled Then Return |
612 | iolat = blkg_to_lat(blkg) |
613 | If Not iolat Then |
615 | Continue |
619 | inflight = atomic_dec_return( & inflight) |
620 | WARN_ON_ONCE(inflight < 0) |
625 | If min_lat_nsec && bi_status != BLK_STS_AGAIN Then |
626 | iolatency_record_time(iolat, & bi_issue, now, issue_as_root) |
628 | window_start = atomic64_read( & window_start) |
629 | If now > window_start && now - window_start >= cur_win_nsec Then |
631 | If atomic64_cmpxchg( & window_start, window_start, now) == window_start Then iolatency_check_latencies(iolat, now) |
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 |