]> git.baikalelectronics.ru Git - kernel.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)
commit670f7b9c517783b1790636159dbeb0572ba2a47f
tree91a596bc9b846b409410afafac0a3cbfbc949538
parent4ee17325f04a4b024711cbfebb8a050b772473fb
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