io_uring: don't double complete failed reissue request
mainline inclusion from mainline-v5.10-rc5 commit c993df5a category: bugfix bugzilla: 186136, https://gitee.com/openeuler/kernel/issues/I4RM1D CVE: NA ------------------------------------------------- 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: b63534c4 ("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> conflict: fs/io_uring.c Change based on e1e16097 ("io_uring: provide generic io_req_complete() helper") Signed-off-by:
Laibin Qiu <qiulaibin@huawei.com> Reviewed-by:
Zhang Yi <yi.zhang@huawei.com>
Loading
Please sign in to comment