* [PATCH v2] nvme: change order of qid and cmdid in completion trace
@ 2018-04-26 20:25 Johannes Thumshirn
2018-04-26 20:41 ` Keith Busch
2018-04-27 5:20 ` Christoph Hellwig
0 siblings, 2 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2018-04-26 20:25 UTC (permalink / raw)
Keith reported that command submission and command completion
tracepoints have the order of the cmdid and qid fields swapped.
While it isn't easily possible to change the command submission
tracepoint, as there is a regression test parsing it in blktests we
can swap the command completion tracepoint to have the fields aligned.
Signed-off-by: Johannes Thumshirn <jthumshirn at suse.de>
Reported-by: Keith Busch <keith.busch at intel.com>
Reviewed-by: Jens Axboe <axboe at kernel.dk>
---
* Changes to v1:
- Changed two typos Jens spotted
- Add Jens' R-b
---
drivers/nvme/host/trace.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/host/trace.h b/drivers/nvme/host/trace.h
index ea91fccd1bc0..01390f0e1671 100644
--- a/drivers/nvme/host/trace.h
+++ b/drivers/nvme/host/trace.h
@@ -148,8 +148,8 @@ TRACE_EVENT(nvme_complete_rq,
__entry->flags = nvme_req(req)->flags;
__entry->status = nvme_req(req)->status;
),
- TP_printk("cmdid=%u, qid=%d, res=%llu, retries=%u, flags=0x%x, status=%u",
- __entry->cid, __entry->qid, __entry->result,
+ TP_printk("qid=%d, cmdid=%u, res=%llu, retries=%u, flags=0x%x, status=%u",
+ __entry->qid, __entry->cid, __entry->result,
__entry->retries, __entry->flags, __entry->status)
);
--
2.16.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2] nvme: change order of qid and cmdid in completion trace
2018-04-26 20:25 [PATCH v2] nvme: change order of qid and cmdid in completion trace Johannes Thumshirn
@ 2018-04-26 20:41 ` Keith Busch
2018-04-27 5:20 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Keith Busch @ 2018-04-26 20:41 UTC (permalink / raw)
On Thu, Apr 26, 2018@02:25:15PM -0600, Johannes Thumshirn wrote:
> Keith reported that command submission and command completion
> tracepoints have the order of the cmdid and qid fields swapped.
>
> While it isn't easily possible to change the command submission
> tracepoint, as there is a regression test parsing it in blktests we
> can swap the command completion tracepoint to have the fields aligned.
It's the little things that matter. :)
Thanks, applied to nvme-4.18.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] nvme: change order of qid and cmdid in completion trace
2018-04-26 20:25 [PATCH v2] nvme: change order of qid and cmdid in completion trace Johannes Thumshirn
2018-04-26 20:41 ` Keith Busch
@ 2018-04-27 5:20 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2018-04-27 5:20 UTC (permalink / raw)
Looks good,
Reviewed-by: Christoph Hellwig <hch at lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-27 5:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-26 20:25 [PATCH v2] nvme: change order of qid and cmdid in completion trace Johannes Thumshirn
2018-04-26 20:41 ` Keith Busch
2018-04-27 5:20 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox