]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: take compl state from submit state
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 12 Feb 2021 03:23:50 +0000 (03:23 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Feb 2021 12:30:25 +0000 (05:30 -0700)
commitd5eb51cb1521bc20c7fc2c6b7de30654ce014847
treee3975157a45022f98d3a5a30f97d728fa6853ea1
parent1ebc43fd82ac40e8c47bdfe81e73600111f31448
io_uring: take compl state from submit state

Completion and submission states are now coupled together, it's weird to
get one from argument and another from ctx, do it consistently for
io_req_free_batch(). It's also faster as we already have @state cached
in registers.

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