]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nvme-pci: Fix queue double allocations
authorKeith Busch <keith.busch@intel.com>
Tue, 23 Jan 2018 16:16:19 +0000 (09:16 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:41:55 +0000 (19:41 -0600)
commit5a8ffabda3225688e03e9539ba50c000ca579110
tree22609f00463c50ff7c3e0c3e647309458335aeab
parent5c91502e1dd113f589a36041dc1fcba2f5ce76a1
nvme-pci: Fix queue double allocations

BugLink: https://bugs.launchpad.net/bugs/1835845
commit 62314e405fa101dbb82563394f9dfc225e3f1167 upstream.

The queue count says the highest queue that's been allocated, so don't
reallocate a queue lower than that.

Fixes: 147b27e4bd0 ("nvme-pci: allocate device queues storage space at probe")
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/nvme/host/pci.c