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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 17:27:43 +0000 (19:27 +0200)
commit2ccebbf08ab2eb60dcb72b58f16a800968638735
treee8a27e4af48e7e14b028ff0ca2ca4a953ec27874
parente5212a681baf5e816a733bd703146f3eec72badb
io_uring: move read/write file prep state into actual opcode handler

commit 584b0180f0f4d67d7145950fe68c625f06c88b10 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c