]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Tue, 21 Jan 2020 00:01:53 +0000 (17:01 -0700)
commitbe21ee9bac5c4f6a0d4167cfb1629b9cfa29b20b
tree3e08555974f383d3da5d064dbbc75c6c833091a6
parent9a16a5503d29bdcbf99995f9de9332a0b1182823
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