Skip to content

Commit

Permalink
[SCSI] sg: use idr to replace static arrays
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Bottomley authored and James Bottomley committed Oct 12, 2007
1 parent 4390e60 commit 7c07d61
Showing 1 changed file with 112 additions and 141 deletions.
Loading

0 comments on commit 7c07d61

Please sign in to comment.