X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=io_uring%2Fkbuf.h;h=c23e15d7d3cafd81fb0170faf2152dcd23b42682;hb=refs%2Fheads%2Ftizen-6.1.y;hp=746fbf31a703ecb1d5362fe565c642bb716611e8;hpb=b8d49bcd8fd19824888c766a217891855d8692ad;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/io_uring/kbuf.h b/io_uring/kbuf.h index 746fbf3..c23e15d 100644 --- a/io_uring/kbuf.h +++ b/io_uring/kbuf.h @@ -86,18 +86,6 @@ static inline bool io_do_buffer_select(struct io_kiocb *req) static inline void io_kbuf_recycle(struct io_kiocb *req, unsigned issue_flags) { - /* - * READV uses fields in `struct io_rw` (len/addr) to stash the selected - * buffer data. However if that buffer is recycled the original request - * data stored in addr is lost. Therefore forbid recycling for now. - */ - if (req->opcode == IORING_OP_READV) { - if ((req->flags & REQ_F_BUFFER_RING) && req->buf_list) { - req->buf_list->head++; - req->buf_list = NULL; - } - return; - } if (req->flags & REQ_F_BUFFER_SELECTED) io_kbuf_recycle_legacy(req, issue_flags); if (req->flags & REQ_F_BUFFER_RING)