]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
io_uring: don't take fs for recvmsg/sendmsg
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 7 Nov 2020 13:20:39 +0000 (13:20 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Dec 2020 19:04:01 +0000 (12:04 -0700)
commit10cad2c40dcb04bb46b2bf399e00ca5ea93d36b0
tree91a596bc9b846b409410afafac0a3cbfbc949538
parent2e9dbe902d1020ef70f968e8675c8d2457c4ffaa
io_uring: don't take fs for recvmsg/sendmsg

We don't even allow not plain data msg_control, which is disallowed in
__sys_{send,revb}msg_sock(). So no need in fs for IORING_OP_SENDMSG and
IORING_OP_RECVMSG. fs->lock is less contanged not as much as before, but
there are cases that can be, e.g. IOSQE_ASYNC.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c