Commit eed138d6 authored by Jens Axboe's avatar Jens Axboe

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: default avatarJens Axboe <axboe@kernel.dk>
parent 04beb6e0
...@@ -2153,7 +2153,7 @@ static inline int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req, ...@@ -2153,7 +2153,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. * conditions are true (normal request), then just queue it.
*/ */
if (unlikely(link->head)) { if (unlikely(link->head)) {
trace_io_uring_link(req, link->head); trace_io_uring_link(req, link->last);
link->last->link = req; link->last->link = req;
link->last = req; link->last = req;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment