From: Mike Christie Date: Thu, 16 Jun 2022 22:45:52 +0000 (-0500) Subject: scsi: iscsi_tcp: Tell net when there's more data X-Git-Tag: v6.1-rc5~604^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f93a722fa7b33204e91cd49f72803629f18053f4;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Mike Christie Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 10d7f2b..5e3b59e 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c @@ -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;