]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: kill extra check in fixed io_file_get()
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 10 Oct 2020 17:34:07 +0000 (18:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 18:49:24 +0000 (12:49 -0600)
commit7fe6dcb753651e564ab4a6a1cc950d13a79fd644
treeaf7e00cee7da8127c00ba5405853ce1f06543157
parent6cf48efa2c8fdd49b8f541c1eca0a8f8e25783ff
io_uring: kill extra check in fixed io_file_get()

ctx->nr_user_files == 0 IFF ctx->file_data == NULL and there fixed files
are not used. Hence, verifying fds only against ctx->nr_user_files is
enough. Remove the other check from hot path.

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