nvmet-tcp: set MSG_EOR if we send last payload in the batch
Subsystems (2)
Sagi Grimberg
maintainerPATCH 1/1 nvmet-tcp: set MSG_EOR if we send last payload in the batch
when trying to send the pdu data digest, we should set this flag.
Reported-by Christoph Hellwig <[email protected]>
Signed-off-by Sagi Grimberg <[email protected]>
--- drivers/nvme/target/tcp.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/nvme/target/tcp.c +2 -0
@@ -648,6 +648,8 @@ static int nvmet_try_send_ddgst(struct nvmet_tcp_cmd *cmd, bool last_in_batch)if (!last_in_batch && cmd->queue->send_list_len) msg.msg_flags |=MSG_MORE ; +else + msg.msg_flags |=MSG_EOR ; ret =kernel_sendmsg (queue->sock, &msg, &iov,1 , iov.iov_len);if (unlikely (ret <=0 ))
Signature · 7 lines
2.20.1 _______________________________________________ linux-nvme mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-nvme
Thanks,
applied to nvme-5.8.
_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme