On 2.4 the use_sg value should be limited to the smaller of MAX_SEGMENTS
or the scsi host sg_tablesize.
This is checked in the block interface during __make_request. I believe if
you got through the sg interface the limiting value is only sg_tablesize,
but Doug is the best one to answer that.
-Mike
Haofeng Kou [haofengk@xxxxxxxxxxxxxxx] wrote:
> For the "struct scsi_cmnd", there is a member :
> unsigned short use_sg;
> Which gives the Number of pieces of the scatter-gather.
>
> How to limit its value, how to set the max value for the "use_sg"?
>
>
> Thanks,
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Michael Anderson
andmike@xxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|