io_uring: don't alter iopoll reissue fail ret code
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 22 Mar 2021 01:58:32 +0000 (01:58 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:47:12 +0000 (07:47 -0600)
commit89427d1de51244031e41e39d47831e1ded4df80b
treea3f312b6713edc990bfe5a8b1c258fde293a7f59
parentafcf23cda0c0448361f5e350a95e5e236fa7bdbb
io_uring: don't alter iopoll reissue fail ret code

When reissue_prep failed in io_complete_rw_iopoll(), we change return
code to -EIO to prevent io_iopoll_complete() from doing resubmission.
Mark requests with a new flag (i.e. REQ_F_DONT_REISSUE) instead and
retain the original return value.

It also removes io_rw_reissue() from io_iopoll_complete() that will be
used later.

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