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>
Sun, 4 Apr 2021 21:27:26 +0000 (15:27 -0600)
commit0b8260bba4e3d58c4df33b44e31dcf432fcd1c5e
tree3c73a49a2332f495196af3ff5556a1897b28805e
parentbada361c6e3de10697780035584b4e71d2234341
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