diff options
author | 2020-08-26 18:58:26 -0600 | |
---|---|---|
committer | 2020-08-26 18:58:26 -0600 | |
commit | 56450c20fe10d4d93f58019109aa4e06fc0b9206 (patch) | |
tree | 4fc098963f203c0bd0cfd04eb4f4454f7020d7c2 /include | |
parent | io_uring: make offset == -1 consistent with preadv2/pwritev2 (diff) | |
download | linux-56450c20fe10d4d93f58019109aa4e06fc0b9206.tar.gz linux-56450c20fe10d4d93f58019109aa4e06fc0b9206.tar.bz2 linux-56450c20fe10d4d93f58019109aa4e06fc0b9206.zip |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions