Thread (6 messages) 6 messages, 3 authors, 2021-10-26

Re: [PATCH] nvme-tcp: Fix H2CData PDU send accounting (again)

From: Sagi Grimberg <sagi@grimberg.me>
Date: 2021-10-25 20:35:33

quoted
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index 78966b8ddb1e..42b58eb1ba62 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -926,15 +926,17 @@ static void nvme_tcp_fail_request(struct nvme_tcp_request *req)
  static int nvme_tcp_try_send_data(struct nvme_tcp_request *req)
  {
  	struct nvme_tcp_queue *queue = req->queue;
+	int req_data_len = req->data_len;
  
  	while (true) {
  		struct page *page = nvme_tcp_req_cur_page(req);
  		size_t offset = nvme_tcp_req_cur_offset(req);
  		size_t len = nvme_tcp_req_cur_length(req);
-		bool last = nvme_tcp_pdu_last_send(req, len);
+		bool pdu_last = nvme_tcp_pdu_last_send(req, len);
I'm not sure why you opted to change the name of this variable here,
It's designed to clarify that this flag is for the last send in the pdu
and not in the request (each request may consist of multiple pdus).
but the patch is testing successfully: no observed r2t errors since apply
this, so I think we're good to go for that regression.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help