Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme: add nvme_complete_req tracepoint for batched completion
@ 2022-02-07 23:28 Bean Huo
  2022-02-09  7:52 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Bean Huo @ 2022-02-07 23:28 UTC (permalink / raw)
  To: kbusch, axboe, hch, sagi, linux-nvme; +Cc: linux-kernel, beanhuo

From: Bean Huo <beanhuo@micron.com>

Add NVMe request completion trace in nvme_complete_batch_req() because
nvme:nvme_complete_req tracepoint is missing in case of request batched
completion.

Signed-off-by: Bean Huo <beanhuo@micron.com>
---
 drivers/nvme/host/core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 5e0bfda04bd7..eaf0b18ff29e 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -368,6 +368,7 @@ EXPORT_SYMBOL_GPL(nvme_complete_rq);
 
 void nvme_complete_batch_req(struct request *req)
 {
+	trace_nvme_complete_rq(req);
 	nvme_cleanup_cmd(req);
 	nvme_end_req_zoned(req);
 }
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nvme: add nvme_complete_req tracepoint for batched completion
  2022-02-07 23:28 [PATCH] nvme: add nvme_complete_req tracepoint for batched completion Bean Huo
@ 2022-02-09  7:52 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2022-02-09  7:52 UTC (permalink / raw)
  To: Bean Huo; +Cc: kbusch, axboe, hch, sagi, linux-nvme, linux-kernel, beanhuo

Thanks,

applied to nvme-5.17.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-09  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-07 23:28 [PATCH] nvme: add nvme_complete_req tracepoint for batched completion Bean Huo
2022-02-09  7:52 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox