public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH] io_uring: improve request linking trace
@ 2024-09-20  6:11 Jens Axboe
  0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2024-09-20  6:11 UTC (permalink / raw)
  To: io-uring

Right now any link trace is listed as being linked after the head
request in the chain, but it's more useful to note explicitly which
request a given new request is chained to. Change the link trace to dump
the tail request so that chains are immediately apparent when looking at
traces.

Signed-off-by: Jens Axboe <[email protected]>

---

diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index d5425f4055ae..2b81269c4266 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -2163,7 +2163,7 @@ static inline int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req,
 	 * conditions are true (normal request), then just queue it.
 	 */
 	if (unlikely(link->head)) {
-		trace_io_uring_link(req, link->head);
+		trace_io_uring_link(req, link->last);
 		link->last->link = req;
 		link->last = req;
 
-- 
Jens Axboe


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-20  6:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20  6:11 [PATCH] io_uring: improve request linking trace Jens Axboe

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