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, 11 Apr 2021 23:41:59 +0000 (17:41 -0600)
commit8c130827f417da791edb919df8cac56af30a1489
tree7d114fbb821ddf896dbe86abbef7e96a66ae8ea7
parent1c98679db94155a145f8389f9aaee30c99dbbd5a
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