]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: factor out the cqe reading mechanics from __nvme_process_cq
authorSagi Grimberg <sagi@grimberg.me>
Sun, 18 Jun 2017 14:28:09 +0000 (17:28 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jun 2017 14:14:13 +0000 (08:14 -0600)
commit8fc1f56b51bed8b5c8f94c14fb519fd7afdff461
tree1b58fe9d0ab6e1aa6eb01f2228da48a623699976
parent1a3cd7f8e550c58ff973e093f659b4c4c093f0c4
nvme-pci: factor out the cqe reading mechanics from __nvme_process_cq

Also, maintain a consumed counter to rely on for doorbell and
cqe_seen update instead of directly relying on the cq head and phase.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c