io_uring: do io_*_prep() early in io_submit_sqe()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 18 Feb 2021 18:29:45 +0000 (18:29 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Feb 2021 20:13:18 +0000 (13:13 -0700)
commitbe7053b7d028dc891857ca3e23b401a901257789
tree325eb41a013b0901ffba951bf13e633821fe137b
parent93642ef8843445f72a1e6b0c68914746c7aa5b9c
io_uring: do io_*_prep() early in io_submit_sqe()

Now as preparations are split from async setup, we can do the first one
pretty early not spilling it across multiple call sites. And after it's
done SQE is not needed anymore and we can save on passing it deeply into
the submission stack.

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