summaryrefslogtreecommitdiffstats
path: root/lib/ashldi3.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2020-12-10 10:44:33 +0100
committerJens Axboe <axboe@kernel.dk>2021-01-05 11:33:50 -0700
commit6d4d273588378c65915acaf7b2ee74e9dd9c130a (patch)
tree6186d79037d2a486cc6f9e386edc531a10e7fb3b /lib/ashldi3.c
parentd16baa3f1453c14d680c5fee01cd122a22d0e0ce (diff)
downloadlinux-6d4d273588378c65915acaf7b2ee74e9dd9c130a.tar.gz
linux-6d4d273588378c65915acaf7b2ee74e9dd9c130a.tar.bz2
linux-6d4d273588378c65915acaf7b2ee74e9dd9c130a.zip
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>
Diffstat (limited to 'lib/ashldi3.c')
0 files changed, 0 insertions, 0 deletions