]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't account for split bio's size in cgroup stats
authorJosef Bacik <josef@toxicpanda.com>
Mon, 30 Jul 2018 14:10:01 +0000 (10:10 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Jul 2018 14:25:55 +0000 (08:25 -0600)
commita85dbd72175a959f53f80c1e6f3e6cd19a74fbed
treecd11264628069e17aa0a85d5806a86c3f8e22e79
parent22e0f2b8a53d51202de3d37b361e310897f5675b
block: don't account for split bio's size in cgroup stats

We need to check in blkcg_bio_issue_check if the bio is flagged as
QUEUE_ENTERED, because if it is then we've already accounted for the
size of the IO in the cgroup stats.  We can still however account for
the extra IO since it'll be another request.

Reported-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-cgroup.h