Skip to content
Commit 9d3d21ae authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

blk-mq: bitmap tag: select random tag betweet 0 and (depth - 1)



The selected tag should be selected at random between 0 and
(depth - 1) with probability 1/depth, instead between 0 and
(depth - 2) with probability 1/(depth - 1).

Signed-off-by: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 60f2df8a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment