]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make OP_CLOSE consistent with direct open
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 24 Sep 2021 19:04:29 +0000 (20:04 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 20:07:54 +0000 (14:07 -0600)
commit7df778be2f61e1a23002d1f2f5d6aaf702771eb8
tree976dc5d32d2dabbc96bbbeafafd9da9dde21d1c8
parent9f3a2cb228c28606895d15f13b30d1f7402dc745
io_uring: make OP_CLOSE consistent with direct open

From recently open/accept are now able to manipulate fixed file table,
but it's inconsistent that close can't. Close the gap, keep API same as
with open/accept, i.e. via sqe->file_slot.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c