• J
    io_uring: honor original task RLIMIT_FSIZE · 4ed734b0
    Jens Axboe 提交于
    With the previous fixes for number of files open checking, I added some
    debug code to see if we had other spots where we're checking rlimit()
    against the async io-wq workers. The only one I found was file size
    checking, which we should also honor.
    
    During write and fallocate prep, store the max file size and override
    that for the current ask if we're in io-wq worker context.
    
    Cc: stable@vger.kernel.org # 5.1+
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    4ed734b0
io_uring.c 187.7 KB