scsi: iscsi_tcp: Tell net when there's more data
If we have more data, set the MSG_SENDPAGE_NOTLAST in case we go down the sendpage path. Link: https://lore.kernel.org/r/20220616224557.115234-5-michael.christie@oracle.com Reviewed-by: Lee Duncan <lduncan@suse.com> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
f1d269765e
commit
f93a722fa7
@ -306,7 +306,7 @@ static int iscsi_sw_tcp_xmit_segment(struct iscsi_tcp_conn *tcp_conn,
|
||||
copy = segment->size - offset;
|
||||
|
||||
if (segment->total_copied + segment->size < segment->total_size)
|
||||
flags |= MSG_MORE;
|
||||
flags |= MSG_MORE | MSG_SENDPAGE_NOTLAST;
|
||||
|
||||
if (tcp_sw_conn->queue_recv)
|
||||
flags |= MSG_DONTWAIT;
|
||||
|
Loading…
Reference in New Issue
Block a user