Commit f7a31280 authored by Jens Axboe's avatar Jens Axboe Committed by Laibin Qiu
Browse files

io_uring: don't re-setup vecs/iter in io_resumit_prep() is already there

mainline inclusion
from mainline-v5.9-rc7
commit 8f3d7496
category: bugfix
bugzilla: 186136, https://gitee.com/openeuler/kernel/issues/I4RM1D


CVE: NA

-------------------------------------------------

If we already have mapped the necessary data for retry, then don't set
it up again. It's a pointless operation, and we leak the iovec if it's
a large (non-stack) vec.

Fixes: b63534c4 ("io_uring: re-issue block requests that failed because of resources")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
conflict:
        fs/io_uring.c
Signed-off-by: default avatarLaibin Qiu <qiulaibin@huawei.com>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
parent 867ba1fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment