]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5c7459920a72b41bff5960b0ad2db345c1d097d
tree8be81f2ecdf3b0fe0f6a346abddc233127b26c92
parent842e528b3367073a42cbbbf08e98ab759ce17a0d
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