]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: fix ref leak for req in case of exit cancelations
authoryangerkun <yangerkun@huawei.com>
Tue, 9 Mar 2021 03:04:10 +0000 (11:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Mar 2021 14:28:42 +0000 (07:28 -0700)
commit5e9317a12ed77d76df3691e47e3a1ec2f6f2e198
treeb29a9e05950688d92122fc13b5164c4e292230cd
parentd10758501f7d06b3cfd6e2302c217db2e00019b0
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: 2b08e73c2526 ("io-wq: improve manager/worker handling over exec")
Signed-off-by: yangerkun <yangerkun@huawei.com>
Link: https://lore.kernel.org/r/20210309030410.3294078-1-yangerkun@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c