]> 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)
commit47bee08e4a70701c954c0ce8dcd35b09531a75d9
tree91a596bc9b846b409410afafac0a3cbfbc949538
parent53eff2c58beccb0b798d0909ceb79b760f470ade
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