[PATCH] nvme: set passthrough command gendisk
Keith Busch
kbusch at kernel.org
Thu Oct 15 10:45:48 EDT 2020
On Thu, Oct 15, 2020 at 09:42:22AM +0200, Christoph Hellwig wrote:
> On Wed, Oct 14, 2020 at 01:38:45PM -0700, Keith Busch wrote:
> > The nvme event traces for IO commands are reporting the wrong QID
> > because we never set the request's gendisk. Set this parameter if the
> > passthrough command is being sent through an IO queue.
>
> Why do we event need the check for a non-NULL disk in nvme_req_qid?
It's the criteria we use to know if we're tracing an Admin vs IO
command. I suppose we could change the criteria we check rather than set
the disk parameter. Maybe rq->queue->queuedata instead of rq->bd_disk.
Would you prefer that?
More information about the Linux-nvme
mailing list