io_uring: move read/write file prep state into actual opcode handler
authorJens Axboe <axboe@kernel.dk>
Tue, 29 Mar 2022 16:48:05 +0000 (10:48 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Mar 2022 17:06:51 +0000 (11:06 -0600)
commit67b218c9af375407a743f5efcdd28b741a60fc96
tree64f0df8a034cff11018306afc1012f859e4b4ad8
parent80cebe5f708e10d4e6071412d4c201b7b344df88
io_uring: move read/write file prep state into actual opcode handler

In preparation for not necessarily having a file assigned at prep time,
defer any initialization associated with the file to when the opcode
handler is run.

Cc: stable@vger.kernel.org # v5.15+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c