nvme-pci: remove the CQ lock for interrupt driven queues
authorChristoph Hellwig <hch@lst.de>
Sun, 2 Dec 2018 16:46:23 +0000 (17:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 18:38:18 +0000 (11:38 -0700)
commit3a7afd8ee42a68d4f24ab9c947a4ef82d4d52375
treefcbba0a200f7f8ee20864983f75e826ea0c62d2a
parentd1ed6aa14bc418531220478604c7b12c5e98fdca
nvme-pci: remove the CQ lock for interrupt driven queues

Now that we can't poll regular, interrupt driven I/O queues there
is almost nothing that can race with an interrupt.  The only
possible other contexts polling a CQ are the error handler and
queue shutdown, and both are so far off in the slow path that
we can simply use the big hammer of disabling interrupts.

With that we can stop taking the cq_lock for normal queues.

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