]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: change blkg reference counting to use percpu_ref
authorDennis Zhou <dennis@kernel.org>
Wed, 5 Dec 2018 17:10:38 +0000 (12:10 -0500)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Dec 2018 05:26:38 +0000 (22:26 -0700)
commit84c2768a7e9fe4ac0e15caf9e4152d68faab907b
tree87573c8336fd2fb9063dc554262d5b293877aa84
parentb0f30304fe698153b5b4410854af5eebf47a34e1
blkcg: change blkg reference counting to use percpu_ref

Every bio is now associated with a blkg putting blkg_get, blkg_try_get,
and blkg_put on the hot path. Switch over the refcnt in blkg to use
percpu_ref.

Signed-off-by: Dennis Zhou <dennis@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
include/linux/blk-cgroup.h