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)
commit7fcf2b033b84e261dca283bc2911aaea4b07b525
tree87573c8336fd2fb9063dc554262d5b293877aa84
parent6f70fb66182b02e50deea65e9a3a86b7bf659a39
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