]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: iscsi_tcp: Tell net when there's more data
authorMike Christie <michael.christie@oracle.com>
Thu, 16 Jun 2022 22:45:52 +0000 (17:45 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Jun 2022 01:19:23 +0000 (21:19 -0400)
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>
drivers/scsi/iscsi_tcp.c

index 10d7f2b7dd0e1fa44a89711a49c8cf941a257a47..5e3b59ecf5b04ae8d6fcac2163b093d6de55f373 100644 (file)
@@ -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;