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>
Thu, 25 Mar 2021 16:24:26 +0000 (10:24 -0600)
commit294f48bec1da699575162368388e37a05a318682
treecb3435045129a8d08444fb564c2a950e4571ed6f
parent8774e503beed36670d0d4ff308c8d66cf3c4f88a
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