diff options
Diffstat (limited to 'block/blk-iolatency.c')
-rw-r--r-- | block/blk-iolatency.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c index d973c38ee4fd..0fff7b56df0e 100644 --- a/block/blk-iolatency.c +++ b/block/blk-iolatency.c | |||
@@ -917,6 +917,9 @@ static size_t iolatency_pd_stat(struct blkg_policy_data *pd, char *buf, | |||
917 | unsigned long long avg_lat; | 917 | unsigned long long avg_lat; |
918 | unsigned long long cur_win; | 918 | unsigned long long cur_win; |
919 | 919 | ||
920 | if (!blkcg_debug_stats) | ||
921 | return 0; | ||
922 | |||
920 | if (iolat->ssd) | 923 | if (iolat->ssd) |
921 | return iolatency_ssd_stat(iolat, buf, size); | 924 | return iolatency_ssd_stat(iolat, buf, size); |
922 | 925 | ||