io_uring: decouple issuing and req preparation
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Sep 2020 19:57:55 +0000 (22:57 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Oct 2020 02:38:46 +0000 (20:38 -0600)
commitbfe76559833d5d76fc4eebdad7658d22522f8a22
tree434e81a5106f828e3f9504c9f022b80845e30b6d
parent73debe68b300ca24fdbbe9b6c3787d3e239deb3d
io_uring: decouple issuing and req preparation

io_issue_sqe() does two things at once, trying to prepare request and
issuing them. Split it in two and deduplicate with io_defer_prep().

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