Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:blkcg_rstat_flush

Proto:static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu)

Type:void

Parameter:

TypeParameterName
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  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)
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()