Skip to content

Commit c993df5

Browse files
committed
io_uring: don't double complete failed reissue request
Zorro reports that an xfstest test case is failing, and it turns out that for the reissue path we can potentially issue a double completion on the request for the failure path. There's an issue around the retry as well, but for now, at least just make sure that we handle the error path correctly. Cc: stable@vger.kernel.org Fixes: b63534c ("io_uring: re-issue block requests that failed because of resources") Reported-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 0abed7c commit c993df5

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/io_uring.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2578,7 +2578,6 @@ static bool io_resubmit_prep(struct io_kiocb *req, int error)
25782578
}
25792579
end_req:
25802580
req_set_fail_links(req);
2581-
io_req_complete(req, ret);
25822581
return false;
25832582
}
25842583
#endif

0 commit comments

Comments
 (0)