]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/kbuf: fix not advancing READV kbuf ring
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 6 Sep 2022 16:11:16 +0000 (17:11 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Sep 2022 16:36:10 +0000 (10:36 -0600)
commitaa81c7a3ee6adab3e0d9dc0eec044528e6f38488
treea2b3f30a0491071182613e931cc2358c7f9ca6be
parente003667c00f7bff7f2e22f17758f2130e245ac7c
io_uring/kbuf: fix not advancing READV kbuf ring

When we don't recycle a selected ring buffer we should advance the head
of the ring, so don't just skip io_kbuf_recycle() for IORING_OP_READV
but adjust the ring.

Fixes: 8516757140c18 ("io_uring: do not recycle buffer in READV")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/a6d85e2611471bcb5d5dcd63a8342077ddc2d73d.1662480490.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.h