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: c7fb1942 ("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>
Loading