From: Michael S. Tsirkin Date: Mon, 31 Oct 2011 07:05:36 +0000 (+0100) Subject: virtio-blk: use ida to allocate disk index X-Git-Tag: v3.2-rc1~48^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0eda62552eba4e1f92d5354bb65c68fb6b45f87;p=pandora-kernel.git virtio-blk: use ida to allocate disk index Based on a patch by Mark Wu 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed