From: James Bottomley Date: Sun, 13 Jan 2008 20:15:28 +0000 (-0600) Subject: SG: work with the SCSI fixed maximum allocations. X-Git-Tag: v2.6.25-rc1~1173^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cedb1f17fb7f4374d11501f61656ae9d3ba47e9;p=pandora-kernel.git SG: work with the SCSI fixed maximum allocations. SCSI sg table allocation has a maximum size (of SCSI_MAX_SG_SEGMENTS, currently 128) and this will cause a BUG_ON() in SCSI if something tries an allocation over it. This patch adds a size limit to the chaining allocator to allow the specification of the maximum allocation size for chaining, so we always chain in units of the maximum SCSI allocation size. Signed-off-by: James Bottomley Signed-off-by: Jens Axboe --- Reading git-diff-tree failed