]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: don't double complete failed reissue request
authorJens Axboe <axboe@kernel.dk>
Tue, 17 Nov 2020 14:59:16 +0000 (07:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:39:13 +0000 (13:39 +0100)
commitd5111454e0fdc6750c98d72f3facf180c313414b
treea439dcde6be17da3c588da107f84f5b4fc26c4fb
parent95799d5ce7206e23ed1d15ab63510799cebe1283
io_uring: don't double complete failed reissue request

commit c993df5a688975bf9ce899706ca13d2bc8d6be25 upstream.

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: b63534c41e20 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c