Skip to content

Commit 48c7823

Browse files
Jon Derrickaxboe
authored andcommitted
NVMe: Remove unused sq_head read in completion path
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent f8b1126 commit 48c7823

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/nvme/host/pci.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ struct nvme_queue {
134134
u32 __iomem *q_db;
135135
u16 q_depth;
136136
s16 cq_vector;
137-
u16 sq_head;
138137
u16 sq_tail;
139138
u16 cq_head;
140139
u16 qid;
@@ -719,7 +718,6 @@ static void __nvme_process_cq(struct nvme_queue *nvmeq, unsigned int *tag)
719718

720719
if ((status & 1) != phase)
721720
break;
722-
nvmeq->sq_head = le16_to_cpu(cqe.sq_head);
723721
if (++head == nvmeq->q_depth) {
724722
head = 0;
725723
phase = !phase;

0 commit comments

Comments
 (0)