diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-cgroup.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 77ee3c1ec1a7..2bef5705ce24 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
@@ -605,10 +605,10 @@ static uint64_t blkio_get_stat(struct blkio_group *blkg, | |||
605 | if (type == BLKIO_STAT_SECTORS) | 605 | if (type == BLKIO_STAT_SECTORS) |
606 | return blkio_fill_stat(key_str, MAX_KEY_LEN - 1, | 606 | return blkio_fill_stat(key_str, MAX_KEY_LEN - 1, |
607 | blkg->stats.sectors, cb, dev); | 607 | blkg->stats.sectors, cb, dev); |
608 | #ifdef CONFIG_DEBUG_BLK_CGROUP | ||
608 | if (type == BLKIO_STAT_UNACCOUNTED_TIME) | 609 | if (type == BLKIO_STAT_UNACCOUNTED_TIME) |
609 | return blkio_fill_stat(key_str, MAX_KEY_LEN - 1, | 610 | return blkio_fill_stat(key_str, MAX_KEY_LEN - 1, |
610 | blkg->stats.unaccounted_time, cb, dev); | 611 | blkg->stats.unaccounted_time, cb, dev); |
611 | #ifdef CONFIG_DEBUG_BLK_CGROUP | ||
612 | if (type == BLKIO_STAT_AVG_QUEUE_SIZE) { | 612 | if (type == BLKIO_STAT_AVG_QUEUE_SIZE) { |
613 | uint64_t sum = blkg->stats.avg_queue_size_sum; | 613 | uint64_t sum = blkg->stats.avg_queue_size_sum; |
614 | uint64_t samples = blkg->stats.avg_queue_size_samples; | 614 | uint64_t samples = blkg->stats.avg_queue_size_samples; |
@@ -1111,9 +1111,6 @@ static int blkiocg_file_read_map(struct cgroup *cgrp, struct cftype *cft, | |||
1111 | case BLKIO_PROP_sectors: | 1111 | case BLKIO_PROP_sectors: |
1112 | return blkio_read_blkg_stats(blkcg, cft, cb, | 1112 | return blkio_read_blkg_stats(blkcg, cft, cb, |
1113 | BLKIO_STAT_SECTORS, 0); | 1113 | BLKIO_STAT_SECTORS, 0); |
1114 | case BLKIO_PROP_unaccounted_time: | ||
1115 | return blkio_read_blkg_stats(blkcg, cft, cb, | ||
1116 | BLKIO_STAT_UNACCOUNTED_TIME, 0); | ||
1117 | case BLKIO_PROP_io_service_bytes: | 1114 | case BLKIO_PROP_io_service_bytes: |
1118 | return blkio_read_blkg_stats(blkcg, cft, cb, | 1115 | return blkio_read_blkg_stats(blkcg, cft, cb, |
1119 | BLKIO_STAT_SERVICE_BYTES, 1); | 1116 | BLKIO_STAT_SERVICE_BYTES, 1); |
@@ -1133,6 +1130,9 @@ static int blkiocg_file_read_map(struct cgroup *cgrp, struct cftype *cft, | |||
1133 | return blkio_read_blkg_stats(blkcg, cft, cb, | 1130 | return blkio_read_blkg_stats(blkcg, cft, cb, |
1134 | BLKIO_STAT_QUEUED, 1); | 1131 | BLKIO_STAT_QUEUED, 1); |
1135 | #ifdef CONFIG_DEBUG_BLK_CGROUP | 1132 | #ifdef CONFIG_DEBUG_BLK_CGROUP |
1133 | case BLKIO_PROP_unaccounted_time: | ||
1134 | return blkio_read_blkg_stats(blkcg, cft, cb, | ||
1135 | BLKIO_STAT_UNACCOUNTED_TIME, 0); | ||
1136 | case BLKIO_PROP_dequeue: | 1136 | case BLKIO_PROP_dequeue: |
1137 | return blkio_read_blkg_stats(blkcg, cft, cb, | 1137 | return blkio_read_blkg_stats(blkcg, cft, cb, |
1138 | BLKIO_STAT_DEQUEUE, 0); | 1138 | BLKIO_STAT_DEQUEUE, 0); |
@@ -1270,12 +1270,6 @@ struct cftype blkio_files[] = { | |||
1270 | .read_map = blkiocg_file_read_map, | 1270 | .read_map = blkiocg_file_read_map, |
1271 | }, | 1271 | }, |
1272 | { | 1272 | { |
1273 | .name = "unaccounted_time", | ||
1274 | .private = BLKIOFILE_PRIVATE(BLKIO_POLICY_PROP, | ||
1275 | BLKIO_PROP_unaccounted_time), | ||
1276 | .read_map = blkiocg_file_read_map, | ||
1277 | }, | ||
1278 | { | ||
1279 | .name = "io_service_bytes", | 1273 | .name = "io_service_bytes", |
1280 | .private = BLKIOFILE_PRIVATE(BLKIO_POLICY_PROP, | 1274 | .private = BLKIOFILE_PRIVATE(BLKIO_POLICY_PROP, |
1281 | BLKIO_PROP_io_service_bytes), | 1275 | BLKIO_PROP_io_service_bytes), |
@@ -1396,6 +1390,12 @@ struct cftype blkio_files[] = { | |||
1396 | BLKIO_PROP_dequeue), | 1390 | BLKIO_PROP_dequeue), |
1397 | .read_map = blkiocg_file_read_map, | 1391 | .read_map = blkiocg_file_read_map, |
1398 | }, | 1392 | }, |
1393 | { | ||
1394 | .name = "unaccounted_time", | ||
1395 | .private = BLKIOFILE_PRIVATE(BLKIO_POLICY_PROP, | ||
1396 | BLKIO_PROP_unaccounted_time), | ||
1397 | .read_map = blkiocg_file_read_map, | ||
1398 | }, | ||
1399 | #endif | 1399 | #endif |
1400 | }; | 1400 | }; |
1401 | 1401 | ||