[PATCH 1/3] nvme-tcp: don't check blk_mq_tag_to_rq when receiving pdu data
Sagi Grimberg
sagi at grimberg.me
Mon May 17 10:59:53 PDT 2021
We already validate it when receiving the c2hdata pdu header
and this is not changing so this is a redundant check.
Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
drivers/nvme/host/tcp.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index 6bd5b281c818..1d184c06c575 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -699,12 +699,6 @@ static int nvme_tcp_recv_data(struct nvme_tcp_queue *queue, struct sk_buff *skb,
struct request *rq;
rq = blk_mq_tag_to_rq(nvme_tcp_tagset(queue), pdu->command_id);
- if (!rq) {
- dev_err(queue->ctrl->ctrl.device,
- "queue %d tag %#x not found\n",
- nvme_tcp_queue_id(queue), pdu->command_id);
- return -ENOENT;
- }
req = blk_mq_rq_to_pdu(rq);
while (true) {
--
2.27.0
More information about the Linux-nvme
mailing list