io_uring: init opcode in io_init_req()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 1 Oct 2021 17:07:02 +0000 (18:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:54 +0000 (05:49 -0600)
commitfc0ae0244bbbedf309a835afb278e39a3fc9bb94
tree2db4fd025626b7363f032311312889d8d90447c8
parente0eb71dcfc4b862261d99f7f90169142867beb0a
io_uring: init opcode in io_init_req()

Move io_req_prep() call inside of io_init_req(), it simplifies a bit
error handling for callers.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a0f59291fd52da4672c323542fd56fd899e23f8f.1633107393.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c