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)
commitbd75904590de1c2bbdff55180cef209b13bd50fa
treee3975157a45022f98d3a5a30f97d728fa6853ea1
parent2f8e45f16c57360dd4d8b1310c2952a29a8fa890
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