]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: clear req->result on IOPOLL re-issue
authorJens Axboe <axboe@kernel.dk>
Thu, 27 Aug 2020 00:58:26 +0000 (18:58 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Aug 2020 00:58:26 +0000 (18:58 -0600)
commitdf1fdf0d7cb9191e3e1b142e276b67a0b6ce6f81
tree4fc098963f203c0bd0cfd04eb4f4454f7020d7c2
parentf3c23ba98455d75d3299c50cb6a5cda6fc7ba29c
io_uring: clear req->result on IOPOLL re-issue

Make sure we clear req->result, which was set to -EAGAIN for retry
purposes, when moving it to the reissue list. Otherwise we can end up
retrying a request more than once, which leads to weird results in
the io-wq handling (and other spots).

Cc: stable@vger.kernel.org
Reported-by: Andres Freund <andres@anarazel.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c