]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] sg: use idr to replace static arrays
authorJames Bottomley <James.Bottomley@steeleye.com>
Sun, 5 Aug 2007 18:36:11 +0000 (13:36 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:50:59 +0000 (14:50 -0400)
commit25a293f8e47b7ea7ffc8deaf06e8651651fc3719
tree61e8161d4ffefec526ad2cfbe0c676072407da4e
parent85fd68794d2ca6a7b35641c0ff3f8cbaa3c0f6e4
[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 <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sg.c