]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: dump sqe contents if issue fails
authorJens Axboe <axboe@kernel.dk>
Sat, 11 Sep 2021 22:04:50 +0000 (16:04 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:52 +0000 (05:49 -0600)
commitb9e3bd57b56de18d8014746e26aa7dd56acc7c10
treef3b41d525eb425c76db61e8b69ece1eeeb7abfb2
parent90254c1c652391718f1ccbcd2e598285f797f4d6
io_uring: dump sqe contents if issue fails

I recently had to look at a production problem where a request ended
up getting the dreaded -EINVAL error on submit. The most used and
hence useless of error codes, as it just tells you that something
was wrong with your request, but not more than that.

Let's dump the full sqe contents if we run into an issue failure,
that'll allow easier diagnosing of a wide variety of issues.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/trace/events/io_uring.h