summaryrefslogtreecommitdiff
path: root/block/blk-mq-tag.h
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2014-05-11 01:43:14 +0400
committerJens Axboe <axboe@fb.com>2014-05-11 01:43:14 +0400
commit9d3d21aeb4f194cd7ac205abe68b14b47ae736a8 (patch)
tree18b1306aa0a86c1c987bab5d3f2e9610f47bbb8b /block/blk-mq-tag.h
parent60f2df8a29df5f2db2c87fd23122a1cebdf2011a (diff)
downloadlinux-9d3d21aeb4f194cd7ac205abe68b14b47ae736a8.tar.xz
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: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-tag.h')
0 files changed, 0 insertions, 0 deletions