io_uring: allow direct descriptors for connect
Jens Axboe
maintainerPATCH 1/1 io_uring: allow direct descriptors for connect
Looks like an oversight that this is currently disabled, but I guess it didn't matter before we had direct descriptor support for socket.
Signed-off-by Jens Axboe <[email protected]>
---
fs/io_uring.c +1 -2
@@ -5982,8 +5982,7 @@ static int io_connect_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)if (unlikely (req->ctx->flags &IORING_SETUP_IOPOLL ))return -EINVAL ; -if (sqe->ioprio || sqe->len || sqe->buf_index || sqe->rw_flags || - sqe->splice_fd_in) +if (sqe->ioprio || sqe->len || sqe->buf_index || sqe->rw_flags)return -EINVAL ; conn->addr =u64_to_user_ptr (READ_ONCE (sqe->addr));
Signature · 1 line
Jens Axboe
Jens Axboe
maintainerQuoted 2 lines · Jens Axboe
Looks like an oversight that this is currently disabled, but I guess it didn't matter before we had direct descriptor support for socket.
Disregard, obviously a bug in my test program!
Signature · 1 line
Jens Axboe