io_uring: add flag for disabling provided buffer recycling
authorJens Axboe <axboe@kernel.dk>
Wed, 23 Mar 2022 15:30:05 +0000 (09:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:22:43 +0000 (07:22 +0100)
commit390b8816317fb0a298cfc323b634288a536f009e
tree93c3ec93665eff384fac2407227dcd54426c4b47
parent9b7b0f2116d5fadec3d140535e79b738153021cb
io_uring: add flag for disabling provided buffer recycling

commit 8a3e8ee56417f5e0e66580d93941ed9d6f4c8274 upstream.

If we need to continue doing this IO, then we don't want a potentially
selected buffer recycled. Add a flag for that.

Set this for recv/recvmsg if they do partial IO.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/io_uring.c