io_uring: add support for IORING_OP_CLOSE
authorJens Axboe <axboe@kernel.dk>
Wed, 11 Dec 2019 21:02:38 +0000 (14:02 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 13 Jan 2020 17:12:27 +0000 (10:12 -0700)
commit782c6ad574f2f60ab3ecfaefbe4a50ec1efa92de
treec5653c38aad63de0a7e9a72b537540d928fad8da
parentf13d26e8e364a79720c66f8b75f8938899226144
io_uring: add support for IORING_OP_CLOSE

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: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h