From: Tejun Heo Date: Mon, 14 Jul 2008 05:59:30 +0000 (+0900) Subject: [SCSI] sd: update index allocation and use ida instead of idr X-Git-Tag: v2.6.27-rc1~55^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f27bac2761cab5a2e212dea602d22457a9aa6943;p=pandora-kernel.git [SCSI] sd: update index allocation and use ida instead of idr Update index allocation as follows. * sd_index_idr is used only for ID allocation and mapping functionality is not used. Use more memory efficient ida instead. * idr and ida have their own locks inside them and don't need them for operation. Drop it. * index wasn't freed if probing failed after index allocation. fix it. * ida allocation should be repeated if it fails with -EAGAIN. Signed-off-by: Tejun Heo Signed-off-by: James Bottomley --- Reading git-diff-tree failed