Function report |
Source Code:block\blk-iolatency.c |
Create Date:2022-07-28 17:46:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iolatency_pd_init
Proto:static void iolatency_pd_init(struct blkg_policy_data *pd)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct blkg_policy_data * | pd |
| 958 | blkg = lat_to_blkg(iolat) |
| 960 | blkiolat = BLKIOLATENCY(rqos) |
| 964 | If blk_queue_nonrot( Pointer to the associated request_queue ) Then ssd = true |
| 966 | Else ssd = false |
| 969 | for_each_possible_cpu(cpu) |
| 971 | stat = per_cpu_ptr(stats, cpu) |
| 972 | latency_stat_init(iolat, stat) |
| 975 | latency_stat_init(iolat, & cur_stat) |
| 976 | rq_wait_init( & rq_wait) |
| 977 | Process spin lock initialization( & lock) |
| 978 | queue_depth = Max # of requests |
| 980 | default_depth = queue_depth |
| 982 | cur_win_nsec = 100 * NSEC_PER_MSEC |
| 983 | atomic64_set( & window_start, now) |
| 993 | Else |
| 994 | atomic_set( & scale_cookie, DEFAULT_SCALE_COOKIE) |
| 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 |