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)
commita87acfde949140946456859eafa5f15175d0f960
treef3b41d525eb425c76db61e8b69ece1eeeb7abfb2
parente0d78afeb8d190164a823d5ef5821b0b3802af33
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