summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2011-10-31 08:05:36 +0100
committerJens Axboe <axboe@kernel.dk>2011-10-31 08:05:36 +0100
commita0eda62552eba4e1f92d5354bb65c68fb6b45f87 (patch)
tree53c4069ef7be8e54e0bce7c82c0f7316f08390e6 /fs/block_dev.c
parentc4853efec665134b2e6fc9c13447323240980351 (diff)
downloadblackbird-op-linux-a0eda62552eba4e1f92d5354bb65c68fb6b45f87.tar.gz
blackbird-op-linux-a0eda62552eba4e1f92d5354bb65c68fb6b45f87.zip
virtio-blk: use ida to allocate disk index
Based on a patch by Mark Wu <dwu@redhat.com> Current index allocation in virtio-blk is based on a monotonically increasing variable "index". This means we'll run out of numbers after a while. It also could cause confusion about the disk name in the case of hot-plugging disks. Change virtio-blk to use ida to allocate index, instead. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud