Currently, ->pd_stat() is called only when moduleparam blkcg_debug_stats is set which prevents it from printing non-debug policy-specific statistics. Let's move debug testing down so that ->pd_stat() can print non-debug stat too. This patch doesn't cause any visible behavior change.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -181,6 +181,7 @@ struct blkcg_policy { · 180 unmodified lines | |||
| 181 | 181 | ||
| 182 | extern struct blkcg blkcg_root; | 182 | extern struct blkcg blkcg_root; |
| 183 | extern struct cgroup_subsys_state * const blkcg_root_css; | 183 | extern struct cgroup_subsys_state * const blkcg_root_css; |
| 184 | extern bool blkcg_debug_stats; | ||
| 184 | 185 | ||
| 185 | struct blkcg_gq *blkg_lookup_slowpath(struct blkcg *blkcg, | 186 | struct blkcg_gq *blkg_lookup_slowpath(struct blkcg *blkcg, |
| 186 | struct request_queue *q, bool update_hint); | 187 | struct request_queue *q, bool update_hint); |