Commit 46dada66 authored by Jens Axboe's avatar Jens Axboe Committed by sanglipeng
Browse files

io_uring: add flag for disabling provided buffer recycling

stable inclusion
from stable-v5.10.165
commit 96ccba4a1a59ae6bcfed405961dd399c74d0b2f8
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7T7G4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=96ccba4a1a59ae6bcfed405961dd399c74d0b2f8



--------------------------------

commit 8a3e8ee5 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: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent d7357296
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment