Commit ecce3494 authored by Jens Axboe's avatar Jens Axboe Committed by sanglipeng
Browse files

io_uring/io-wq: free worker if task_work creation is canceled

stable inclusion
from stable-v5.10.164
commit b912ed1363b363d587fe1aac9636ce9e9366a775
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7T7G4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b912ed1363b363d587fe1aac9636ce9e9366a775



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

commit af82425c upstream.

If we cancel the task_work, the worker will never come into existance.
As this is the last reference to it, ensure that we get it freed
appropriately.

Cc: stable@vger.kernel.org
Reported-by: default avatar진호 <wnwlsgh98@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent abd4a038
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment