diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-20 01:29:24 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-04-20 10:06:40 +0200 |
commit | a637120e49021d197e9578cba545bbaa459cbb51 (patch) | |
tree | 0d502a8fcc55c89eb4d79a7578e46a9273d1f2c8 /arch/arm/boot/dts/at91sam9m10g45ek.dts | |
parent | blkcg: fix blkcg->css ref leak in __blkg_lookup_create() (diff) | |
download | linux-a637120e49021d197e9578cba545bbaa459cbb51.tar.xz linux-a637120e49021d197e9578cba545bbaa459cbb51.zip |
blkcg: use radix tree to index blkgs from blkcg
blkg lookup is currently performed by traversing linked list anchored
at blkcg->blkg_list. This is very unscalable and with blk-throttle
enabled and enough request queues on the system, this can get very
ugly quickly (blk-throttle performs look up on every bio submission).
This patch makes blkcg use radix tree to index blkgs combined with
simple last-looked-up hint. This is mostly identical to how icqs are
indexed from ioc.
Note that because __blkg_lookup() may be invoked without holding queue
lock, hint is only updated from __blkg_lookup_create(). Due to cfq's
cfqq caching, this makes hint updates overly lazy. This will be
improved with scheduled blkcg aware request allocation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/arm/boot/dts/at91sam9m10g45ek.dts')
0 files changed, 0 insertions, 0 deletions