summaryrefslogtreecommitdiffstats
path: root/include/linux/blk-cgroup.h
diff options
context:
space:
mode:
authorTejun Heo2019-07-16 16:58:31 +0200
committerJens Axboe2019-07-16 18:06:39 +0200
commit07b0fdecb2477396bcb69609019aade2b22124a1 (patch)
treeb554d081cf839d5d04679b62db42decb4e0cc517 /include/linux/blk-cgroup.h
parentio_uring: fix counter inc/dec mismatch in async_list (diff)
downloadkernel-qcow2-linux-07b0fdecb2477396bcb69609019aade2b22124a1.tar.gz
kernel-qcow2-linux-07b0fdecb2477396bcb69609019aade2b22124a1.tar.xz
kernel-qcow2-linux-07b0fdecb2477396bcb69609019aade2b22124a1.zip
blkcg: allow blkcg_policy->pd_stat() to print non-debug info too
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. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk-cgroup.h')
-rw-r--r--include/linux/blk-cgroup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h
index 689a58231288..12811091fd50 100644
--- a/include/linux/blk-cgroup.h
+++ b/include/linux/blk-cgroup.h
@@ -181,6 +181,7 @@ struct blkcg_policy {
extern struct blkcg blkcg_root;
extern struct cgroup_subsys_state * const blkcg_root_css;
+extern bool blkcg_debug_stats;
struct blkcg_gq *blkg_lookup_slowpath(struct blkcg *blkcg,
struct request_queue *q, bool update_hint);