projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1d2697
)
scsi: iscsi_tcp: Tell net when there's more data
author
Mike Christie
<michael.christie@oracle.com>
Thu, 16 Jun 2022 22:45:52 +0000
(17:45 -0500)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/drivers/scsi/iscsi_tcp.c
b/drivers/scsi/iscsi_tcp.c
index 10d7f2b7dd0e1fa44a89711a49c8cf941a257a47..5e3b59ecf5b04ae8d6fcac2163b093d6de55f373 100644
(file)
--- 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;