diff options
author | Tejun Heo <tj@kernel.org> | 2012-03-08 13:53:57 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-03-20 07:45:37 -0400 |
commit | 5fe224d2d5fbf8f020b30d0ba69fed7856923752 (patch) | |
tree | 26941c40cd28c4f7070e8edab338d340afd2bc99 /block/blk-cgroup.h | |
parent | 1cd9e039fc258f91fe38b97b3c622b13a3b8a795 (diff) |
blkcg: don't use percpu for merged stats
With recent plug merge updates, merged stats are no longer called for
plug merges and now only updated while holding queue_lock. As
stats_lock is scheduled to be removed, there's no reason to use percpu
for merged stats. Don't use percpu for merged stats.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 1de32fe0e2af..6c8e3e345426 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -29,10 +29,12 @@ enum blkio_policy_id { | |||
29 | #ifdef CONFIG_BLK_CGROUP | 29 | #ifdef CONFIG_BLK_CGROUP |
30 | 30 | ||
31 | enum stat_type { | 31 | enum stat_type { |
32 | /* Number of IOs merged */ | ||
33 | BLKIO_STAT_MERGED, | ||
32 | /* Total time spent (in ns) between request dispatch to the driver and | 34 | /* Total time spent (in ns) between request dispatch to the driver and |
33 | * request completion for IOs doen by this cgroup. This may not be | 35 | * request completion for IOs doen by this cgroup. This may not be |
34 | * accurate when NCQ is turned on. */ | 36 | * accurate when NCQ is turned on. */ |
35 | BLKIO_STAT_SERVICE_TIME = 0, | 37 | BLKIO_STAT_SERVICE_TIME, |
36 | /* Total time spent waiting in scheduler queue in ns */ | 38 | /* Total time spent waiting in scheduler queue in ns */ |
37 | BLKIO_STAT_WAIT_TIME, | 39 | BLKIO_STAT_WAIT_TIME, |
38 | /* Number of IOs queued up */ | 40 | /* Number of IOs queued up */ |
@@ -57,8 +59,6 @@ enum stat_type_cpu { | |||
57 | BLKIO_STAT_CPU_SERVICE_BYTES, | 59 | BLKIO_STAT_CPU_SERVICE_BYTES, |
58 | /* Total IOs serviced, post merge */ | 60 | /* Total IOs serviced, post merge */ |
59 | BLKIO_STAT_CPU_SERVICED, | 61 | BLKIO_STAT_CPU_SERVICED, |
60 | /* Number of IOs merged */ | ||
61 | BLKIO_STAT_CPU_MERGED, | ||
62 | BLKIO_STAT_CPU_NR | 62 | BLKIO_STAT_CPU_NR |
63 | }; | 63 | }; |
64 | 64 | ||