nvme-pci: split the nvme queue lock into submission and completion locks
authorJens Axboe <axboe@kernel.dk>
Fri, 18 May 2018 21:30:16 +0000 (15:30 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 May 2018 21:30:16 +0000 (15:30 -0600)
commit231c3ca9f21a89fff529606c5a1c4c85ca83ee06
treeb83c42bbd266cd548da05266fc33b403b99ac4ed
parente96e21d89ffe9e45978b540e7f396cf24a0d5ec4
nvme-pci: split the nvme queue lock into submission and completion locks

This is now feasible. We protect the submission queue ring with
->sq_lock, and the completion side with ->cq_lock.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c