]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: change blkg reference counting to use percpu_ref
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Tue, 11 Sep 2018 18:41:36 +0000 (14:41 -0400)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Sep 2018 02:29:18 +0000 (20:29 -0600)
commit6568804fbfcb94439108d897fd2f726e8ba671a1
treef5d5e1a689c0e7ae5d99625a75fd5235c2f21fe8
parent7c211b29a858310dbd8991b9698c3c7a8afb0622
blkcg: change blkg reference counting to use percpu_ref

Now that every bio is associated with a blkg, this puts the use of
blkg_get, blkg_try_get, and blkg_put on the hot path. This switches over
the refcnt in blkg to use percpu_ref.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
include/linux/blk-cgroup.h