]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] update SG_ALL to avoid causing chaining
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 10 Feb 2008 15:42:46 +0000 (09:42 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 11 Feb 2008 19:40:13 +0000 (13:40 -0600)
commit5dc10c5d0d4f88e0d8eb2927c7eb486ddab886c0
tree5583446125e4d649f28cb678ee809a2937964555
parentaaedac425ff733c93050536b3e4ff915813fc96f
[SCSI] update SG_ALL to avoid causing chaining

Since the sg chaining patches went in, our current value of 255 for
SG_ALL excites chaining on some drivers which cannot support it (and
would thus oops).  Redefine SG_ALL to mean no sg table size
preference, but use the single allocation (non chained) limit.  This
also helps for drivers that use it to size an internal table.

We'll do an opt in system later where truly chaining supporting
drivers can define their sg_tablesize to be anything up to
SCSI_MAX_SG_CHAIN_ELEMENTS.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
include/scsi/scsi_host.h