nvme-pci: use a flag for polled queues
authorKeith Busch <keith.busch@intel.com>
Fri, 8 Mar 2019 17:43:06 +0000 (10:43 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:57 +0000 (08:07 +0200)
commit7c349dde26b75db3fa1863e36984ac2271cd797a
tree85c339f21c7097363559445c5d75150e64c2cc00
parent70583295388a3ceabc22bddeb16e788f58225d70
nvme-pci: use a flag for polled queues

A negative value for the cq_vector used to mean the queue is either
disabled or a polled queue. However, we have a queue enabled flag,
so the cq_vector had been serving double duty.

Don't overload the meaning of cq_vector. Use a flag specific to the
polled queues instead.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c