projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/amdgpu/soc15: add support for baco reset with swSMU
[linux-2.6-block.git]
/
block
/
blk-iolatency.c
diff --git
a/block/blk-iolatency.c
b/block/blk-iolatency.c
index d973c38ee4fd65b502af755e491e1a4bb830c0c3..0fff7b56df0e4d0fa0f82be4102f3ceb03735034 100644
(file)
--- 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,
unsigned long long avg_lat;
unsigned long long cur_win;
+ if (!blkcg_debug_stats)
+ return 0;
+
if (iolat->ssd)
return iolatency_ssd_stat(iolat, buf, size);