]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2786afd6aed6cceda172daa070fb396bae9952f0
tree118e3cacfd3d979d6f4434a9c2479b67a1e7e8df
parent55a83a88a1b63bc108cf6f8dcf9deb58efe32396
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