]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: use hw qid in trace events
authorKeith Busch <keith.busch@intel.com>
Fri, 29 Jun 2018 22:50:01 +0000 (16:50 -0600)
committerChristoph Hellwig <hch@lst.de>
Mon, 23 Jul 2018 07:35:19 +0000 (09:35 +0200)
commitddcbea9a6f22f97e14537a6678997ef97c9fc2de
tree06ce6e09f965fd881cce0614053d9015e2fd09e5
parent6563fc8565006a1c519a0e0540a7f9d51962dc01
nvme: use hw qid in trace events

We can not match a command to its completion based on the command
id alone. We need the submitting queue identifier to pair with the
completion, so this patch adds that to the trace buffer.

This patch is also collapsing the admin and IO submission traces into a
single one so we don't need to duplicate this and creating unnecessary
code branches: we know if the command is an admin vs IO based on the qid.

And since we're here, the patch fixes code formatting in the area.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
[hch: move the qid helper to nvme.h and made it an inline function]
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/trace.h