Skip to content
Commit 70e35125 authored by yangerkun's avatar yangerkun Committed by Jens Axboe
Browse files

io-wq: fix ref leak for req in case of exit cancelations

do_work such as io_wq_submit_work that cancel the work may leave a ref of
req as 1 if we have links. Fix it by call io_run_cancel.

Fixes: 4fb6ac32

 ("io-wq: improve manager/worker handling over exec")
Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Link: https://lore.kernel.org/r/20210309030410.3294078-1-yangerkun@huawei.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 7a612350
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment