diff options
author | Christoph Hellwig <hch@lst.de> | 2016-11-10 16:32:34 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-10 18:06:26 +0100 |
commit | 7bf58533a0bc257edff883619befe7e5a1e8caca (patch) | |
tree | 0ffacc930004c83ee064ae0bb9a035b6744a04e4 /drivers/nvme/host/pci.c | |
parent | nvme: introduce struct nvme_request (diff) | |
download | linux-7bf58533a0bc257edff883619befe7e5a1e8caca.tar.xz linux-7bf58533a0bc257edff883619befe7e5a1e8caca.zip |
nvme: don't pass the full CQE to nvme_complete_async_event
We only need the status and result fields, and passing them explicitly
makes life a lot easier for the Fibre Channel transport which doesn't
have a full CQE for the fast path case.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/pci.c')
-rw-r--r-- | drivers/nvme/host/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index de8e0505d979..51d13d5ec7a8 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -703,7 +703,8 @@ static void __nvme_process_cq(struct nvme_queue *nvmeq, unsigned int *tag) */ if (unlikely(nvmeq->qid == 0 && cqe.command_id >= NVME_AQ_BLKMQ_DEPTH)) { - nvme_complete_async_event(&nvmeq->dev->ctrl, &cqe); + nvme_complete_async_event(&nvmeq->dev->ctrl, + cqe.status, &cqe.result); continue; } |