commit | 479f517be57185087c2ae3c5e5aea0c3c6d4e5cc | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Sat Oct 10 18:34:07 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Oct 10 12:49:24 2020 -0600 |
tree | af7e00cee7da8127c00ba5405853ce1f06543157 | |
parent | 233295130e53c8dfe6dbef3f52634c3f7e44cd6a [diff] |
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>