From: James Bottomley Date: Sun, 5 Aug 2007 18:36:11 +0000 (-0500) Subject: [SCSI] sg: use idr to replace static arrays X-Git-Tag: v2.6.24-rc1~1290^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c07d613d22680f1caf2bd9ee49838ec7730b9da;p=pandora-kernel.git [SCSI] sg: use idr to replace static arrays sg uses a scheme to reallocate a single contiguous array of all its pointers for lookup and management. This didn't matter too much when sg could only attach 256 nodes, but now the maximum has been bumped up to 32k we're starting to push the limits of the maximum allocatable contiguous memory. The solution to this is to eliminate the static array and do everything via idr, which this patch does. Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed