aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-mq-debugfs-zoned.c
diff options
context:
space:
mode:
authorLin Feng <linf@wangsu.com>2021-02-02 07:18:23 -0700
committerJens Axboe <axboe@kernel.dk>2021-02-02 20:37:08 -0700
commit388c705b95f23f317fa43e6abf9ff07b583b721a (patch)
tree1675ad44ead9a496c2918b0f21de433037c0f1e4 /block/blk-mq-debugfs-zoned.c
parentnull_blk: cleanup zoned mode initialization (diff)
downloadlinux-dev-388c705b95f23f317fa43e6abf9ff07b583b721a.tar.xz
linux-dev-388c705b95f23f317fa43e6abf9ff07b583b721a.zip
bfq-iosched: Revert "bfq: Fix computation of shallow depth"
This reverts commit 6d4d273588378c65915acaf7b2ee74e9dd9c130a. bfq.limit_depth passes word_depths[] as shallow_depth down to sbitmap core sbitmap_get_shallow, which uses just the number to limit the scan depth of each bitmap word, formula: scan_percentage_for_each_word = shallow_depth / (1 << sbimap->shift) * 100% That means the comments's percentiles 50%, 75%, 18%, 37% of bfq are correct. But after commit patch 'bfq: Fix computation of shallow depth', we use sbitmap.depth instead, as a example in following case: sbitmap.depth = 256, map_nr = 4, shift = 6; sbitmap_word.depth = 64. The resulsts of computed bfqd->word_depths[] are {128, 192, 48, 96}, and three of the numbers exceed core dirver's 'sbitmap_word.depth=64' limit nothing. Signed-off-by: Lin Feng <linf@wangsu.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-debugfs-zoned.c')
0 files changed, 0 insertions, 0 deletions