• Jens Axboe's avatar
    io_uring: add support for IORING_OP_CLOSE · b5dba59e
    Jens Axboe authored
    This works just like close(2), unsurprisingly. We remove the file
    descriptor and post the completion inline, then offload the actual
    (potential) last file put to async context.
    
    Mark the async part of this work as uncancellable, as we really must
    guarantee that the latter part of the close is run.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    b5dba59e
io_uring.c 136 KB