]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvme: add nvme_complete_req tracepoint for batched completion
authorBean Huo <beanhuo@micron.com>
Mon, 7 Feb 2022 23:28:06 +0000 (00:28 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Feb 2022 13:50:42 +0000 (14:50 +0100)
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>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c

index 961a5f8a44d2aabe954a5d20cc9c215dc2676e37..79005ea1a33e380b83ecd2e599619032e44f2f33 100644 (file)
@@ -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);
 }