]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/rw: commit provided buffer state on async
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 10 Feb 2025 17:27:56 +0000 (17:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:53 +0000 (13:49 +0100)
commit58d38d324589ea99bcdba1b5f085ef3a3310ccb8
treeb31e42b9cf8ae35fe1d02f78c1009646533c2b3c
parenta1b17713b32c75a90132ea2f92b1257f3bbc20f3
io_uring/rw: commit provided buffer state on async

When we get -EIOCBQUEUED, we need to ensure that the buffer is consumed
from the provided buffer ring, which can be done with io_kbuf_recycle()
+ REQ_F_PARTIAL_IO.

Reported-by: Muhammad Ramdhan <ramdhan@starlabs.sg>
Reported-by: Bing-Jhong Billy Jheng <billy@starlabs.sg>
Reported-by: Jacob Soo <jacob.soo@starlabs.sg>
Fixes: c7fb19428d67d ("io_uring: add support for ring mapped supplied buffers")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/rw.c