Skip to content
Commit 174fd8d3 authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

blkcg: fix incorrect read/write sync/async stat accounting

While unifying how blkcg stats are collected, 77ea7338

 ("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: default avatarTejun Heo <tj@kernel.org>
Fixes: 77ea7338

 ("blkcg: move io_service_bytes and io_serviced stats into blkcg_gq")
Reviewed-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 858e904b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment