]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: allow blkcg_policy->pd_stat() to print non-debug info too
authorTejun Heo <tj@kernel.org>
Tue, 16 Jul 2019 14:58:31 +0000 (07:58 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Jul 2019 16:06:39 +0000 (10:06 -0600)
commita3ee0bf7463c607884221666870371958b8b0893
treeb554d081cf839d5d04679b62db42decb4e0cc517
parent6880980c848a9822459f7e325c8cc1b1fe9b4c1b
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>
block/blk-cgroup.c
block/blk-iolatency.c
include/linux/blk-cgroup.h