nvme: use queuedata for nvme_req_qid
authorKeith Busch <kbusch@kernel.org>
Thu, 15 Oct 2020 18:36:29 +0000 (11:36 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 22 Oct 2020 13:27:14 +0000 (15:27 +0200)
commit643c476d6f78cf0349fb8e07334962dd056a3c90
treefed02a84851d4e2ae6c790586f816ddd1b0c24a1
parenta87da50f39d467f2ea4c1f98decb72ef6d87a31e
nvme: use queuedata for nvme_req_qid

The request's rq_disk isn't set for passthrough IO commands, so tracing
uses qid 0 for these which incorrectly decodes as an admin command. Use
the request_queue's queuedata instead since that value is always set for
the IO queues, and never set for the admin queue.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/nvme.h