函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-cgroup.c Create Date:2022-07-27 19:16:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blkcg_rstat_flush

函数原型:static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu)

返回类型:void

参数:

类型参数名称
struct cgroup_subsys_state *css
intcpu
1134  blkcg等于css_to_blkcg(css)
1137  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1140  parent等于 all non-root blkcg_gq's are guaranteed to have access to parent
1141  bisc等于per_cpu_ptr(iostat_cpu, cpu)
1146  循环
1147  seq等于u64_stats_fetch_begin( & sync)
1148  blkg_iostat_set( & cur, & cur)
1149 u64_stats_fetch_retry( & sync, seq)循环
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  如果parent
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)
1170  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()