Skip to content

Commit f9dde18

Browse files
axboeKeith Busch
authored andcommitted
nvme-pci: remove cq check after submission
We always check the completion queue after submitting, but in my testing this isn't a win even on DRAM/xpoint devices. In some cases it's actually worse. Kill it. Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 750dde4 commit f9dde18

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
@@ -69,7 +69,6 @@ MODULE_PARM_DESC(io_queue_depth, "set io queue depth, should >= 2");
6969
struct nvme_dev;
7070
struct nvme_queue;
7171

72-
static void nvme_process_cq(struct nvme_queue *nvmeq);
7372
static void nvme_dev_disable(struct nvme_dev *dev, bool shutdown);
7473

7574
/*
@@ -896,7 +895,6 @@ static blk_status_t nvme_queue_rq(struct blk_mq_hw_ctx *hctx,
896895
goto out_cleanup_iod;
897896
}
898897
__nvme_submit_cmd(nvmeq, &cmnd);
899-
nvme_process_cq(nvmeq);
900898
spin_unlock_irq(&nvmeq->q_lock);
901899
return BLK_STS_OK;
902900
out_cleanup_iod:

0 commit comments

Comments
 (0)