From: Jens Axboe <axboe@xxxxxxxxx> Date: Thu, 19 Mar 2020 20:22:15 -0600 > Dmitry reports that a test case shows that io_uring isn't honoring a > modified rlimit nofile setting. get_unused_fd_flags() checks the task > signal->rlimi[] for the limits. As this isn't easily inheritable, > provide a __get_unused_fd_flags() that takes the value instead. Then we > can grab it when the request is prepared (from the original task), and > pass that in when we do the async part part of the open. > > Reported-by: Dmitry Kadashev <dkadashev@xxxxxxxxx> > Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>