]> git.baikalelectronics.ru Git - kernel.git/commit
bfq: Fix computation of shallow depth
authorJan Kara <jack@suse.cz>
Thu, 10 Dec 2020 09:44:33 +0000 (10:44 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 5 Jan 2021 18:33:50 +0000 (11:33 -0700)
commit8fbe2ddd8db06b50937cd1e05e1f511c4a9762e6
tree6186d79037d2a486cc6f9e386edc531a10e7fb3b
parent2edbd81e21561769735131236b1ab5f2eba925f0
bfq: Fix computation of shallow depth

BFQ computes number of tags it allows to be allocated for each request type
based on tag bitmap. However it uses 1 << bitmap.shift as number of
available tags which is wrong. 'shift' is just an internal bitmap value
containing logarithm of how many bits bitmap uses in each bitmap word.
Thus number of tags allowed for some request types can be far to low.
Use proper bitmap.depth which has the number of tags instead.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c