Skip to content
Commit c336e992 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: remove bogus RLIMIT_NOFILE check in file registration



We already checked this limit when the file was opened, and we keep it
open in the file table. Hence when we added unit_inflight to the count
we want to register, we're doubly accounting these files. This results
in -EMFILE for file registration, if we're at half the limit.

Cc: stable@vger.kernel.org # v5.1+
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent aa96bf8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment