]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: cleanup SQ allocation a bit
authorChristoph Hellwig <hch@lst.de>
Sun, 2 Dec 2018 16:46:18 +0000 (17:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 18:38:18 +0000 (11:38 -0700)
commit61419e431ecd60776b98940ddad2de2fc97ccf2f
tree0d18bf6816246d55fa70c3fc61b4a27d6dfd2f37
parent3c31119cec5fd696b9f94849a48c32483641e88a
nvme-pci: cleanup SQ allocation a bit

Use a bit flag to mark if the SQ was allocated from the CMB, and clean
up the surrounding code a bit.

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