]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: fix incorrect read/write sync/async stat accounting
authorTejun Heo <tj@kernel.org>
Thu, 22 Oct 2015 00:27:12 +0000 (09:27 +0900)
committerJens Axboe <axboe@fb.com>
Tue, 27 Oct 2015 06:04:56 +0000 (15:04 +0900)
commit9c229e3f2f5b2fd179874a4f9a2042b2bf73c4e0
tree7b510befe24f781d0d00561ce61b3c41cbf7d29f
parent91fd1a50ac95937208e5b5681ecdbdd0f0762842
blkcg: fix incorrect read/write sync/async stat accounting

While unifying how blkcg stats are collected, 542cfd3510fe ("blkcg:
move io_service_bytes and io_serviced stats into blkcg_gq")
incorrectly used bio->flags instead of bio->rw to tell the IO type.
This made IOs to be accounted as the wrong type.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 542cfd3510fe ("blkcg: move io_service_bytes and io_serviced stats into blkcg_gq")
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blk-cgroup.h