io_uring: move res check out of io_rw_reissue()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 11 Feb 2021 18:28:22 +0000 (18:28 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Feb 2021 18:41:49 +0000 (11:41 -0700)
commit23faba36ce287e4af9018dea51893a1067701508
tree11e5142c563325f1500da9376d97b3453a9e2a22
parentf161340d9e85b9038031b497b32383e50ff00ca1
io_uring: move res check out of io_rw_reissue()

We pass return code into io_rw_reissue() only to be able to check if it's
-EAGAIN. That's not the cleanest approach and may prevent inlining of the
non-EAGAIN fast path, so do it at call sites.

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