Re: [SCSI] Set max_phys_segments to sg_tablesize

From: mika.penttila
Date: Wed Oct 15 2003 - 07:38:08 EST


>>> Many SCSI host drivers assume that use_sg will be <= sg_tablesize.
>>> Hence they may break under 2.6 as the number of physical segments
>>> is not limited by sg_tablesize. This patch fixes that.
>>
>> Physical segments don't matter, hw segments does and it's bounded >by sg_tablesize.

>It does matter if the driver can't cope with it.


But this fix may hurt performance with well behaving drivers in iommu systems. It's better to fix the broken drivers I think.

--Mika


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/