]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf04e0e01ab4482ee48a658c7a518cb112063ef51
treefcbba0a200f7f8ee20864983f75e826ea0c62d2a
parente22f6402a740162219dfba9a84b9c4da8e87d0bf
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