Add comment to go with r291228.

Submitted by:	trasz@
This commit is contained in:
Navdeep Parhar 2015-12-22 20:03:49 +00:00
parent 6c43c26fe0
commit c8b73c2cc7

View File

@ -1371,6 +1371,11 @@ iscsi_ioctl_daemon_handoff(struct iscsi_softc *sc,
is->is_statsn = handoff->idh_statsn;
is->is_initial_r2t = handoff->idh_initial_r2t;
is->is_immediate_data = handoff->idh_immediate_data;
/*
* Cap MaxRecvDataSegmentLength obtained from the target to the maximum
* size supported by our ICL module.
*/
is->is_max_data_segment_length = min(ic->ic_max_data_segment_length,
handoff->idh_max_data_segment_length);
is->is_max_burst_length = handoff->idh_max_burst_length;