io_uring: set @poll->file after @poll init
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 21 Jun 2020 10:09:52 +0000 (13:09 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Jun 2020 02:46:05 +0000 (20:46 -0600)
commitb90cd197f9315f968d5ee4e6ee9f4e3067f2c883
tree8b47935e245c25849f0695d15c0f28239f5c26be
parent24c74678634b3cbdb325b3b7706366c83811b311
io_uring: set @poll->file after @poll init

It's a good practice to modify fields of a struct after but not before
it was initialised. Even though io_init_poll_iocb() doesn't touch
poll->file, call it first.

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