]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: take comp_state from ctx
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 10 Feb 2021 00:03:22 +0000 (00:03 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 14:28:43 +0000 (07:28 -0700)
commit0764e5e48b95476883c5685629d285726bda656d
tree30947592c53a30fe41b9a34088a8904485023f6d
parent1a12bfc276c96f6b8bccdde2e07b0c9e1e504a00
io_uring: take comp_state from ctx

__io_queue_sqe() is always called with a non-NULL comp_state, which is
taken directly from context. Don't pass it around but infer from ctx.

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