Skip to content

Commit eed138d

Browse files
committed
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. Signed-off-by: Jens Axboe <[email protected]>
1 parent 04beb6e commit eed138d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io_uring/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2153,7 +2153,7 @@ static inline int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req,
21532153
* conditions are true (normal request), then just queue it.
21542154
*/
21552155
if (unlikely(link->head)) {
2156-
trace_io_uring_link(req, link->head);
2156+
trace_io_uring_link(req, link->last);
21572157
link->last->link = req;
21582158
link->last = req;
21592159

0 commit comments

Comments
 (0)