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>
Sat, 28 Dec 2019 19:02:36 +0000 (12:02 -0700)
commit59bb402138f008796d46fb35d8ee83420558e23b
tree7d2a68e8b48de490b5db5c8af49f38e70903e59c
parentc81572dd4f082112c97d03b6704d91effb23a674
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