OSDN Git Service

nvme-pci: refactor nvme_disable_io_queues
authorChristoph Hellwig <hch@lst.de>
Sun, 2 Dec 2018 16:46:21 +0000 (17:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 18:38:18 +0000 (11:38 -0700)
commit5271edd41dd895773d3105f5065bbf5ded0dee7c
tree8be81f2ecdf3b0fe0f6a346abddc233127b26c92
parent0b2a8a9f4b564c7d923597828d93cd1f69ce40e0
nvme-pci: refactor nvme_disable_io_queues

Pass the opcode for the delete SQ/CQ command as an argument instead of
the somewhat confusing pass loop.

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