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)
commit6322307809649cba6f545640563f95d686ecf404
tree0d18bf6816246d55fa70c3fc61b4a27d6dfd2f37
parent4e224106673f1e8679249a9cac75712b896861b0
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