aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorBixuan Cui <[email protected]>2021-09-11 16:58:47 +0800
committerJens Axboe <[email protected]>2021-10-19 05:49:52 -0600
commit71e1cef2d794338cc7b979d4c6144e1dc12718b5 (patch)
treeab3540da285ea69d553813fcf8a183f5530dde89 /tools/perf/scripts/python/futex-contention.py
parenta87acfde949140946456859eafa5f15175d0f960 (diff)
io-wq: Remove duplicate code in io_workqueue_create()
While task_work_add() in io_workqueue_create() is true, then duplicate code is executed: -> clear_bit_unlock(0, &worker->create_state); -> io_worker_release(worker); -> atomic_dec(&acct->nr_running); -> io_worker_ref_put(wq); -> return false; -> clear_bit_unlock(0, &worker->create_state); // back to io_workqueue_create() -> io_worker_release(worker); -> kfree(worker); The io_worker_release() and clear_bit_unlock() are executed twice. Fixes: 3146cba99aa2 ("io-wq: make worker creation resilient against signals") Signed-off-by: Bixuan Cui <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviwed-by: Hao Xu <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions