io_uring: move send/recv IOPOLL check into prep
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 3 Jun 2020 15:03:25 +0000 (18:03 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Jun 2020 17:14:19 +0000 (11:14 -0600)
commitd2b6f48b691ed67569786c332f0173b918d3fd1b
tree7f54110dc0c2c73654341095f8345d1db687332d
parentec65fea5a8d7a82d3137dd2a44197eb577da111f
io_uring: move send/recv IOPOLL check into prep

Fail recv/send in case of IORING_SETUP_IOPOLL earlier during prep,
so it'd be done only once. Removes duplication as well

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