nvme-pci: remove nvmeq->tags
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Jan 2020 18:40:24 +0000 (19:40 +0100)
committerKeith Busch <kbusch@kernel.org>
Mon, 3 Feb 2020 18:00:25 +0000 (03:00 +0900)
commitcfa27356f835dc7755192e7b941d4f4851acbcc7
tree118e3cacfd3d979d6f4434a9c2479b67a1e7e8df
parentb716e6889c95f64ba32af492461f6cc9341f3f05
nvme-pci: remove nvmeq->tags

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>
drivers/nvme/host/pci.c