nvme-pci: use atomic bitops to mark a queue enabled
authorChristoph Hellwig <hch@lst.de>
Sun, 2 Dec 2018 16:46:17 +0000 (17:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 18:38:18 +0000 (11:38 -0700)
commit4e224106673f1e8679249a9cac75712b896861b0
tree51620d993d8fa6945bbf740c8d0756a5736046c1
parente20ba6e1da029136ded295f33076483d65ddf50a
nvme-pci: use atomic bitops to mark a queue enabled

This gets rid of all the messing with cq_vector and the ->polled field
by using an atomic bitop to mark the queue enabled or not.

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