Skip to contentSkip to conversation

io_uring: improve request linking trace

PATCH New Jens Axboe 1 participant 1 message Sep 20, 2024 io_uring

lore
Share & tools
lore

Jens Axboe

author maintainer
#0 lore raw

PATCH 1/1 io_uring: improve request linking trace

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.

---

io_uring/io_uring.c +1 -1
index d5425f4055ae..2b81269c4266 100644
@@ -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;
 
Signature · 1 line
Jens Axboe