nvme-pci: remove nvmeq->tags
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Jan 2020 18:40:24 +0000 (19:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:37:01 +0000 (08:37 +0100)
commit0448387729d99f68f07ee465cdc65ed6f974ec3a
treece778077bcfddacdd248de5ad61cc350296f3c0a
parent1d0fbf3e2687ace7f24e118640f70211a07065be
nvme-pci: remove nvmeq->tags

[ Upstream commit cfa27356f835dc7755192e7b941d4f4851acbcc7 ]

There is no real need to have a pointer to the tagset in
struct nvme_queue, as we only need it in a single place, and that place
can derive the used tagset from the device and qid trivially.  This
fixes a problem with stale pointer exposure when tagsets are reset,
and also shrinks the nvme_queue structure.  It also matches what most
other transports have done since day 1.

Reported-by: Edmund Nadolski <edmund.nadolski@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c