Hi group,

I have been tracing the code related to sending PDUs from iscsi
initiator (ver 2.0-871).

And through some printk()s i realize that starting from
iscsi_sw_tcp_pdu_init(), all the functions using scatterlist (struct
scatterlist *sg) seem to use 4096 as the length (sg->length).

But I was not able to trace down where this 4096 is initially assigned
to sg->length... I searched through the code for "4096" and only two
spots came up:  ".sg_tablesize = 4096" in struct scsi_host_template
iscsi_sw_tcp_sht and "#define ISCSI_TOTAL_CMDS_MAX 4096". But changing
these two values did not affect the sg->length value, which was still
4096.

I was guessing this 4096 had something to do with the fs block size
and this value was somewhat from "struct scsi_data_buffer *sdb =
scsi_out(task->sc);" in iscsi_sw_tcp_pdu_init()... but still don't
have a clue about how and why iscsi initiator gets this value as the
length for the scatterlist...

Could anyone maybe explain a bit or point me to some relevant
document?

Thanks a lot!

Jack

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to