summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-rk808.c
diff options
context:
space:
mode:
authorTang Junhui <tang.junhui@zte.com.cn>2018-07-26 12:17:35 +0800
committerJens Axboe <axboe@kernel.dk>2018-07-27 09:15:46 -0600
commit7f4a59de28137aae4316a58f501b599ac3b87395 (patch)
treedfb79852a9a9a16f766b5a3f31240b467d484dfc /drivers/clk/clk-rk808.c
parent5c25c4fc74af40657606dd01df27cc5eb9efb26c (diff)
bcache: calculate the number of incremental GC nodes according to the total of btree nodes
This patch base on "[PATCH] bcache: finish incremental GC". Since incremental GC would stop 100ms when front side I/O comes, so when there are many btree nodes, if GC only processes constant (100) nodes each time, GC would last a long time, and the front I/Os would run out of the buckets (since no new bucket can be allocated during GC), and I/Os be blocked again. So GC should not process constant nodes, but varied nodes according to the number of btree nodes. In this patch, GC is divided into constant (100) times, so when there are many btree nodes, GC can process more nodes each time, otherwise GC will process less nodes each time (but no less than MIN_GC_NODES). Signed-off-by: Tang Junhui <tang.junhui@zte.com.cn> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/clk/clk-rk808.c')
0 files changed, 0 insertions, 0 deletions