]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use a separate struct for timeout_remove
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 10 Oct 2020 17:34:10 +0000 (18:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 18:49:25 +0000 (12:49 -0600)
commit886e6217d68542ad161ea2704ae4c85d1293c20f
treebf6e2bb9fe69a8b4f240ef4fd0f67261d4326ff3
parent97c94c322325d57cf5c80824ed2a2275890c6640
io_uring: use a separate struct for timeout_remove

Don't use struct io_timeout for both IORING_OP_TIMEOUT and
IORING_OP_TIMEOUT_REMOVE, they're quite different. Split them in two,
that allows to remove an unused field in struct io_timeout, and btw kill
->flags not used by either. This also easier to follow, especially for
timeout remove.

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