| Function report | 
| Source Code: block\blk-cgroup.c | Create Date:2022-07-28 17:40:26 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:blkcg_rstat_flush
Proto:static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct cgroup_subsys_state * | css | |
| int | cpu | 
| 1134 | blkcg = css_to_blkcg(css) | 
| 1141 | bisc = per_cpu_ptr(iostat_cpu, cpu) | 
| 1146 | Do | 
| 1147 | seq = u64_stats_fetch_begin( & sync) | 
| 1148 | blkg_iostat_set( & cur, & cur) | 
| 1149 | When u64_stats_fetch_retry( & sync, seq) cycle | 
| 1152 | u64_stats_update_begin( & sync) | 
| 1153 | blkg_iostat_set( & delta, & cur) | 
| 1154 | blkg_iostat_sub( & delta, & last) | 
| 1155 | blkg_iostat_add( & cur, & delta) | 
| 1156 | blkg_iostat_add( & last, & delta) | 
| 1157 | u64_stats_update_end( & sync) | 
| 1160 | If parent Then | 
| 1161 | u64_stats_update_begin( & sync) | 
| 1162 | blkg_iostat_set( & delta, & cur) | 
| 1163 | blkg_iostat_sub( & delta, & last) | 
| 1164 | blkg_iostat_add( & cur, & delta) | 
| 1165 | blkg_iostat_add( & last, & delta) | 
| 1166 | u64_stats_update_end( & sync) | 
| 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 |