io_uring: don't setup async context for read/write fixed

We don't need it, and if we have it, then the retry handler will attempt
to copy the non-existent iovec with the inline iovec, with a segment
count that doesn't make sense.

Fixes: f67676d160c6 ("io_uring: ensure async punted read/write requests copy iovec")
Reported-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

Changed files
+3
fs
+3
fs/io_uring.c
··· 1786 1786 struct iovec *iovec, struct iovec *fast_iov, 1787 1787 struct iov_iter *iter) 1788 1788 { 1789 + if (req->opcode == IORING_OP_READ_FIXED || 1790 + req->opcode == IORING_OP_WRITE_FIXED) 1791 + return 0; 1789 1792 if (!req->io && io_alloc_async_ctx(req)) 1790 1793 return -ENOMEM; 1791 1794