Message ID | 20240408010322.4104395-2-ming.lei@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | io_uring: support sqe group and provide group kbuf | expand |
diff --git a/io_uring/net.c b/io_uring/net.c index 97d815d13b6a..9c0567892945 100644 --- a/io_uring/net.c +++ b/io_uring/net.c @@ -997,7 +997,7 @@ int io_send_zc_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) zc->done_io = 0; - if (unlikely(READ_ONCE(sqe->__pad2[0]) || READ_ONCE(sqe->addr3))) + if (unlikely(READ_ONCE(sqe->addr3))) return -EINVAL; /* we don't support IOSQE_CQE_SKIP_SUCCESS just yet */ if (req->flags & REQ_F_CQE_SKIP)
send_zc never uses any byte in sqe->__pad2[], and the check is unnecessary, so remove it and prepare for using the last byte as sqe extended flags. Signed-off-by: Ming Lei <ming.lei@redhat.com> --- io_uring/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)