From: Michael S. Tsirkin Date: Sun, 30 Oct 2011 19:29:59 +0000 (+0200) Subject: virtio-blk: use ida to allocate disk index X-Git-Tag: v3.2-rc1~83^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5087a50e66bd51b6e72c60bce4757a42b93f6b2c;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: Rusty Russell --- Reading git-diff-tree failed