We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fa07ed commit df6d342Copy full SHA for df6d342
io_uring/kbuf.h
@@ -91,9 +91,13 @@ static inline void io_kbuf_recycle(struct io_kiocb *req, unsigned issue_flags)
91
* buffer data. However if that buffer is recycled the original request
92
* data stored in addr is lost. Therefore forbid recycling for now.
93
*/
94
- if (req->opcode == IORING_OP_READV)
+ if (req->opcode == IORING_OP_READV) {
95
+ if ((req->flags & REQ_F_BUFFER_RING) && req->buf_list) {
96
+ req->buf_list->head++;
97
+ req->buf_list = NULL;
98
+ }
99
return;
-
100
101
if (req->flags & REQ_F_BUFFER_SELECTED)
102
io_kbuf_recycle_legacy(req, issue_flags);
103
if (req->flags & REQ_F_BUFFER_RING)
0 commit comments