summaryrefslogtreecommitdiffstats
path: root/arch/mips/ralink/cevt-rt3352.c
diff options
context:
space:
mode:
authorTejun Heo2015-08-18 23:55:24 +0200
committerJens Axboe2015-08-19 00:49:17 +0200
commit77ea733884eb5520f22c36def1309fe2ab61633e (patch)
tree125f3d034cd5c7e57425789f8c23a66368643841 /arch/mips/ralink/cevt-rt3352.c
parentblkcg: make blkg_[rw]stat_recursive_sum() to be able to index into blkcg_gq (diff)
downloadkernel-qcow2-linux-77ea733884eb5520f22c36def1309fe2ab61633e.tar.gz
kernel-qcow2-linux-77ea733884eb5520f22c36def1309fe2ab61633e.tar.xz
kernel-qcow2-linux-77ea733884eb5520f22c36def1309fe2ab61633e.zip
blkcg: move io_service_bytes and io_serviced stats into blkcg_gq
Currently, both cfq-iosched and blk-throttle keep track of io_service_bytes and io_serviced stats. While keeping track of them separately may be useful during development, it doesn't make much sense otherwise. Also, blk-throttle was counting bio's as IOs while cfq-iosched request's, which is more confusing than informative. This patch adds ->stat_bytes and ->stat_ios to blkg (blkcg_gq), removes the counterparts from cfq-iosched and blk-throttle and let them print from the common blkg counters. The common counters are incremented during bio issue in blkcg_bio_issue_check(). The outputs are still filtered by whether the policy has blkg_policy_data on a given blkg, so cfq's output won't show up if it has never been used for a given blkg. The only times when the outputs would differ significantly are when policies are attached on the fly or elevators are switched back and forth. Those are quite exceptional operations and I don't think they warrant keeping separate counters. v3: Update blkio-controller.txt accordingly. v2: Account IOs during bio issues instead of request completions so that bio-based drivers can be handled the same way. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'arch/mips/ralink/cevt-rt3352.c')
0 files changed, 0 insertions, 0 deletions